http://rextester.com/
여러 언어를 지원한다. 테스트정도로 아주 쓸만하다.
http://rextester.com/
여러 언어를 지원한다. 테스트정도로 아주 쓸만하다.
넷플릭스는 다이내믹 옵티마이저라는 새로운 기술을 발표했다. 이것은 인공지능 기술을 이용해서 영화의 각 장면을 분석하고 이미지의 영향을 주지 않도록 압축하는 기술이다. 인도, 일본 그리고 한국에서는 텔레비전보다 모바일의 사용이 더 높은데 이 기술을 이용하면 같은 데이터로 두배 더 선명한 영상을 시청할 수 있다.
▶ 건강보험
1. 2개의 근무처에서 근로할 경우 각각의 사업장에서 기준급여(총보수-비과세급여)를 기준으로 산정된 보험급여가 공제된다.
2. 급여가 높아지더라도 제한없이 비례하여 보험료가 공제된다.
▶ 국민연금
1. 각 사업장에서 기준소득월액(가입자가 신고한 소득월액에서 천원 미만을 절사한 금액. 최저 23만원, 최고 375만원 범위로 결정)을 기준
으로 공제된다. 따라서 신고한 소득월액이 23만원보다 적으면 23만원을, 375만원보다 많으면 375만원을 기준소득월액으로 한다.
2. 주사업장의 급여가 375만원 이상일 경우 부사업장에서는 보험료가 부과되지 않는다.
3. 주사업장이 300만원, 부사업장이 200만원이면 375만원을 한도로 하되 3:2의 비율로 각 사업장에서 납부하게 된다.
▶ 고용보험
1. 고용보험은 이중취득이 인정되지 않으므로 주사업장에서만 납부하게된다. 주사업장 기준은 월급여가 많은 사업장이며 급여가 같을 경우는 소정근로시간이 많은 사업장이 된다. 단 판단이 곤란하면 근로자가 선택할 수 있다.
▶ 산업재해보상보험
1. 산업재해보상보험은 회사가 전액을 부담하고 사업장별로 관리되므로
각 사업장에 부과된다. 즉 이중가입이 가능하다.
※ 4대보험은 의무적이므로 복수의 사업장에 근로하더라도 위와 같이 정리하여 소홀함이 없어야 한다.
http://www.mpva.go.kr/ebook/2011_12_webzine/Data/pdf/16.pdf
http://www.panoramio.com/
구글 파노라미오 11월 4일 종료된다. 개인적으로 참 잘 썼는데 아쉽다.
파노라미오
종료 메일
실험 결과 5등은 자주 나오는 편이고 4등도 가끔 나온다. 하지만 3등 이상은 많이 돌려봐도 힘들다.
랜덤 패키지를 추가한다.
import random
로또 번호는 1~46이므로 배열을 초기화 한다.
numbers = []
for i in range(1,46):
numbers.append(i)
5게임 기준으로 중복되지 않도록 번호를 뽑는다.
games = []
for game in range(1,6):
select = []
for i in range(0,6):
idx = random.randrange(0,len(numbers))
select.append(numbers[idx])
del numbers[idx]
print("game" + str(game) + ": ", end="")
select = sorted(select)
games.append(select)
print(select)
기존 당첨 이력과 비교해 보자.
history = [[12,14,21,30,39,43,45],
[1,28,35,41,43,44,31],
[1,12,29,34,36,37,41],
[4,8,13,19,20,43,26],
[4,11,20,23,32,39,40],
[2,11,19,25,28,32,44],
[2,6,13,16,29,30,21],
[2,7,27,33,41,44,10],
[1,7,22,33,37,40,20],
[2,5,15,18,19,23,44],
[17,20,30,31,33,45,19],
[11,15,24,35,37,45,42],
[3,4,9,24,25,33,10],
[10,18,30,36,39,44,32],
[2,10,16,19,34,45,1],
[2,12,19,24,39,44,35],
[3,4,6,10,28,30,37],
[1,6,17,22,28,45,23],
[1,4,8,23,33,42,45],
[10,28,31,33,41,44,21],
[3,13,16,24,26,29,9],
[3,10,14,16,36,38,35],
[11,23,28,29,30,44,13],
[4,5,8,16,21,29,3],
[3,11,13,21,33,37,18],
[2,5,8,11,33,39,31],
[1,7,16,18,34,38,21],
[4,18,26,33,34,38,14],
[7,15,20,25,33,43,12],
[1,6,11,28,34,42,30],
[3,11,14,15,32,36,44],
[15,27,33,35,43,45,16],
[24,25,33,34,38,39,43],
[7,17,19,30,36,38,34],
[5,15,22,23,34,35,2],
[1,8,10,13,28,42,45],
[7,12,15,24,25,43,13],
[6,7,12,28,38,40,18],
[1,11,15,17,25,39,40],
[6,13,20,27,28,40,15],
[17,23,27,35,38,43,2],
[21,24,27,29,43,44,7],
[4,10,19,29,32,42,30],
[3,5,7,14,26,34,35],
[4,5,6,12,25,37,45],
[12,15,24,36,41,44,42],
[1,8,17,34,39,45,27],
[1,8,11,15,18,45,7],
[9,10,14,25,27,31,11],
[7,10,17,29,33,44,5],
[8,21,28,31,36,45,43],
[7,9,10,13,31,35,24],
[11,18,26,27,40,41,25],
[7,8,20,29,33,38,9],
[12,14,15,24,27,32,3],
[15,17,25,37,42,43,13],
[2,4,6,11,17,28,16],
[5,6,11,17,38,44,13],
[10,20,33,36,41,44,5],
[3,5,8,19,38,42,20],
[5,6,9,11,15,37,26],
[2,3,12,20,27,38,40],
[4,9,23,33,39,44,14],
[7,18,19,27,29,42,45],
[8,19,25,28,32,36,37],
[10,14,19,39,40,43,23],
[3,7,14,16,31,40,39],
[7,37,38,39,40,44,18],
[16,21,26,31,36,43,6],
[5,6,26,27,38,39,1],
[3,13,15,40,41,44,20],
[11,12,16,26,29,44,18],
[3,4,7,11,31,41,35],
[3,21,22,33,41,42,20],
[13,19,28,37,38,43,4],
[5,16,21,23,24,30,29],
[2,9,24,41,43,45,30],
[1,4,16,26,40,41,31],
[5,13,17,23,28,36,8],
[15,24,31,32,33,40,13],
[8,17,18,24,39,45,32],
[11,18,21,36,37,43,12],
[14,15,18,21,26,35,23],
[6,15,22,23,25,32,40],
[7,18,22,24,31,34,6],
[3,16,22,37,38,44,23],
[6,7,15,16,20,31,26],
[11,13,25,26,29,33,32],
[4,10,11,12,20,27,38],
[9,12,19,20,39,41,13],
[15,18,21,32,35,44,6],
[1,2,4,23,31,34,8],
[8,17,21,24,27,31,15],
[19,28,31,38,43,44,1],
[1,7,12,15,23,42,11],
[2,9,22,25,31,45,12],
[13,14,26,33,40,43,15],
[3,6,7,20,21,39,13],
[1,7,19,26,27,35,16],
[7,13,30,39,41,45,25],
[9,15,16,21,28,34,24],
[1,2,6,16,19,42,9],
[2,16,17,32,39,45,40],
[6,8,13,30,35,40,21],
[8,16,25,30,42,43,15],
[4,5,11,12,24,27,28],
[5,13,18,23,40,45,3],
[10,17,18,19,23,27,35],
[8,21,25,39,40,44,18],
[7,8,11,16,41,44,35],
[6,9,18,19,25,33,40],
[2,22,27,33,36,37,14],
[14,18,20,23,28,36,33],
[4,8,27,34,39,40,13],
[4,8,18,19,39,44,41],
[8,14,23,36,38,39,13],
[1,5,6,14,20,39,22],
[1,2,7,9,10,38,42],
[2,6,18,21,33,34,30],
[2,19,25,26,27,43,28],
[13,14,22,27,30,38,2],
[2,16,19,31,34,35,37],
[5,11,14,27,29,36,44],
[5,12,17,29,34,35,27],
[4,12,24,33,38,45,22],
[8,10,23,24,35,43,37],
[3,4,12,14,25,43,17],
[8,24,28,35,38,40,5],
[2,8,13,25,28,37,3],
[9,10,13,24,33,38,28],
[2,5,6,13,28,44,43],
[8,13,14,30,38,39,5],
[20,30,36,38,41,45,23],
[6,8,28,33,38,39,22],
[2,8,15,22,25,41,30],
[14,21,29,31,32,37,17],
[2,7,12,15,21,34,5],
[6,7,10,16,38,41,4],
[7,18,30,39,40,41,36],
[8,17,27,33,40,44,24],
[2,12,14,33,40,41,25],
[3,5,14,20,42,44,33],
[5,7,9,11,32,35,33],
[5,7,20,22,37,42,39],
[5,12,14,32,34,42,16],
[16,17,22,31,34,37,33],
[10,11,15,25,35,41,13],
[2,8,20,30,33,34,6],
[14,15,16,19,25,43,2],
[2,4,20,34,35,43,14],
[3,13,18,33,37,45,1],
[11,18,21,26,38,43,29],
[1,12,26,27,29,33,42],
[3,6,13,23,24,35,1],
[1,3,17,20,31,44,40],
[1,10,15,16,32,41,28],
[4,5,6,25,26,43,41],
[4,10,18,27,40,45,38],
[14,19,25,26,27,34,2],
[5,10,16,17,31,32,21],
[4,11,13,17,20,31,33],
[5,7,18,37,42,45,20],
[1,4,20,23,29,45,28],
[11,12,25,32,44,45,23],
[12,15,19,26,40,43,29],
[4,20,26,28,35,40,31],
[12,20,23,28,30,44,43],
[11,17,21,24,26,36,12],
[13,14,17,32,41,42,6],
[2,7,17,28,29,39,37],
[1,10,20,32,35,40,43],
[3,6,20,24,27,44,25],
[1,7,14,20,34,37,41],
[29,31,35,38,40,44,17],
[1,12,13,21,32,45,14],
[6,7,15,22,34,39,28],
[8,17,20,27,37,43,6],
[4,24,25,27,34,35,2],
[5,17,21,25,36,44,10],
[13,18,26,31,34,44,12],
[5,6,19,26,41,45,34],
[8,13,26,28,32,34,43],
[3,12,13,15,34,36,14],
[3,19,22,31,42,43,26],
[6,10,18,31,32,34,11],
[12,23,26,30,36,43,11],
[7,8,18,32,37,43,12],
[11,12,14,15,18,39,34],
[10,24,26,29,37,38,32],
[9,14,15,17,31,33,23],
[16,17,23,24,29,44,3],
[1,5,9,21,27,35,45],
[16,23,27,29,33,41,22],
[18,20,24,27,31,42,39],
[5,17,25,31,39,40,10],
[1,12,22,32,33,42,38],
[7,14,17,20,35,39,31],
[11,23,26,29,39,44,22],
[10,11,29,38,41,45,21],
[1,4,37,38,40,45,7],
[4,5,13,14,37,41,11],
[3,7,18,29,32,36,19],
[4,22,27,28,38,40,1],
[6,8,13,16,30,43,3],
[14,23,30,32,34,38,6],
[1,9,12,28,36,41,10],
[2,8,23,41,43,44,30],
[2,11,12,15,23,37,8],
[1,15,20,26,35,42,9],
[5,8,21,23,27,33,12],
[4,5,9,13,26,27,1],
[3,7,14,23,26,42,24],
[12,29,32,33,39,40,42],
[12,25,29,35,42,43,24],
[5,27,31,34,35,43,37],
[12,13,32,33,40,41,4],
[6,9,11,22,24,30,31],
[7,20,22,25,38,40,44],
[6,14,22,26,43,44,31],
[1,5,27,30,34,36,40],
[6,22,28,32,34,40,26],
[1,4,10,17,31,42,2],
[3,4,12,20,24,34,41],
[5,20,23,27,35,40,43],
[13,14,24,32,39,41,3],
[19,20,23,24,43,44,13],
[4,13,20,29,36,41,39],
[4,13,22,27,34,44,6],
[5,7,8,15,30,43,22],
[20,22,26,33,36,37,25],
[22,27,31,35,37,40,42],
[8,17,35,36,39,42,4],
[2,7,26,29,40,43,42],
[2,4,8,15,20,27,11],
[2,8,17,30,31,38,25],
[4,8,25,27,37,41,21],
[1,2,23,25,38,40,43],
[17,22,26,27,36,39,20],
[1,3,27,28,32,45,11],
[12,15,19,22,28,34,5],
[1,10,16,24,25,35,43],
[3,4,23,29,40,41,20],
[3,5,10,17,30,31,16],
[8,23,25,27,35,44,24],
[18,29,30,37,39,43,8],
[14,25,29,32,33,45,37],
[9,12,13,15,37,38,27],
[1,9,14,16,21,29,3],
[4,13,18,31,33,45,43],
[8,13,20,22,23,36,34],
[16,25,26,31,36,43,44],
[6,13,29,37,39,41,43],
[10,16,20,39,41,42,27],
[4,21,22,34,37,38,33],
[8,13,15,28,37,43,17],
[2,12,14,17,24,40,39],
[4,10,13,23,32,44,20],
[1,8,11,13,22,38,31],
[6,12,15,34,42,44,4],
[23,29,31,33,34,44,40],
[3,20,24,32,37,45,4],
[11,18,26,31,37,40,43],
[8,11,28,30,43,45,41],
[4,6,10,14,25,40,12],
[4,9,10,32,36,40,18],
[8,10,18,23,27,40,33],
[1,7,12,18,23,27,44],
[4,19,20,26,30,35,24],
[13,25,27,34,38,41,10],
[12,24,33,38,40,42,30],
[8,10,18,30,32,34,27],
[12,15,20,24,30,38,29],
[6,14,19,21,23,31,13],
[3,10,20,26,35,43,36],
[3,7,13,27,40,41,36],
[2,7,8,9,17,33,34],
[1,11,12,14,26,35,6],
[13,20,21,30,39,45,32],
[11,13,23,35,43,45,17],
[4,6,10,19,20,44,14],
[25,27,29,36,38,40,41],
[1,23,28,30,34,35,9],
[10,22,28,34,36,44,2],
[17,20,30,31,37,40,25],
[6,12,20,26,29,38,45],
[11,16,29,38,41,44,21],
[9,14,20,22,33,34,28],
[8,16,26,30,38,45,42],
[3,13,20,24,33,37,35],
[19,23,29,33,35,43,27],
[2,3,5,11,27,39,33],
[18,22,25,31,38,45,6],
[1,3,16,18,30,34,44],
[3,23,28,34,39,42,16],
[12,16,19,22,37,40,8],
[6,7,15,24,28,30,21],
[4,17,18,27,39,43,19],
[8,10,14,27,33,38,3],
[10,11,26,31,34,44,30],
[1,17,27,28,29,40,5],
[8,15,19,21,34,44,12],
[6,11,26,27,28,44,30],
[4,9,10,29,31,34,27],
[2,11,13,14,28,30,7],
[11,13,15,26,28,34,31],
[4,5,14,20,22,43,44],
[5,6,8,11,22,26,44],
[7,17,20,26,30,40,24],
[2,14,15,22,23,44,43],
[2,9,15,23,34,40,3],
[4,7,39,41,42,45,40],
[11,14,22,35,37,39,5],
[1,3,18,32,40,41,16],
[6,9,21,31,32,40,38],
[9,20,21,22,30,37,16],
[6,7,13,16,24,25,1],
[7,12,21,24,27,36,45],
[1,2,10,25,26,44,4],
[5,20,21,24,33,40,36],
[10,14,22,24,28,37,26],
[5,9,15,19,22,36,32],
[6,12,18,31,38,43,9],
[9,21,27,34,41,43,2],
[1,2,9,17,19,42,20],
[10,15,20,23,42,44,7],
[12,13,17,22,25,33,8],
[18,20,31,34,40,45,30],
[11,15,20,26,31,35,7],
[1,13,20,22,25,28,15],
[9,16,28,40,41,43,21],
[1,3,7,8,24,42,43],
[10,11,18,22,28,39,30],
[16,17,28,37,39,40,15],
[7,16,18,20,23,26,3],
[1,8,9,17,29,32,45],
[1,26,31,34,40,43,20],
[4,7,10,19,31,40,26],
[7,12,19,21,29,32,9],
[11,22,24,32,36,38,7],
[4,15,28,33,37,40,25],
[10,15,22,24,27,42,19],
[1,5,10,12,16,20,11],
[1,2,8,17,26,37,27],
[6,10,22,31,35,40,19],
[5,22,29,31,34,39,43],
[6,22,29,37,43,45,23],
[1,11,13,24,28,40,7],
[4,8,19,25,27,45,7],
[11,13,15,17,25,34,26],
[15,26,37,42,43,45,9],
[8,11,14,16,18,21,13],
[7,9,15,26,27,42,18],
[16,18,24,42,44,45,17],
[17,20,35,36,41,43,21],
[11,21,24,30,39,45,26],
[3,22,25,29,32,44,19],
[5,12,19,26,27,44,38],
[5,15,21,25,26,30,31],
[2,5,7,14,16,40,4],
[11,12,14,21,32,38,6],
[2,3,22,27,30,40,29],
[5,10,16,24,27,35,33],
[4,16,23,25,35,40,27],
[1,10,19,20,24,40,23],
[1,9,10,12,21,40,37],
[10,14,18,21,36,37,5],
[2,8,14,25,29,45,24],
[5,8,29,30,35,44,38],
[14,19,36,43,44,45,1],
[11,16,19,22,29,36,26],
[5,16,17,20,26,41,24],
[5,25,27,29,34,36,33],
[1,8,18,24,29,33,35],
[5,13,14,20,24,25,36],
[3,14,17,20,24,31,34],
[3,8,13,27,32,42,10],
[5,13,14,22,44,45,33],
[15,20,23,29,39,42,2],
[1,2,15,28,34,45,38],
[1,10,17,29,31,43,15],
[1,13,14,33,34,43,25],
[1,8,19,34,39,43,41],
[18,24,26,29,34,38,32],
[6,8,14,21,30,37,45],
[2,13,34,38,42,45,16],
[1,5,14,18,32,37,4],
[3,5,20,34,35,44,16],
[5,9,16,23,26,45,21],
[13,15,21,29,39,43,33],
[5,14,27,30,39,43,35],
[16,17,34,36,42,45,3],
[4,9,14,26,31,44,39],
[3,4,16,17,19,20,23],
[9,17,19,30,35,42,4],
[1,6,9,16,17,28,24],
[6,12,13,17,32,44,24],
[16,23,25,33,36,39,40],
[7,17,20,32,44,45,33],
[2,4,21,25,33,36,17],
[10,14,15,32,36,42,3],
[9,18,29,32,38,43,20],
[12,18,20,21,25,34,42],
[16,19,23,25,41,45,3],
[5,8,22,28,33,42,37],
[2,17,19,20,34,45,21],
[3,10,11,22,36,39,8],
[10,11,21,27,31,39,43],
[1,13,33,35,43,45,23],
[15,17,19,34,38,41,2],
[9,17,34,35,43,45,2],
[2,3,5,6,12,20,25],
[4,12,24,27,28,32,10],
[1,5,19,28,34,41,16],
[1,2,5,11,18,36,22],
[14,15,17,19,37,45,40],
[5,15,21,23,25,45,12],
[4,18,23,30,34,41,19],
[7,8,18,21,23,39,9],
[4,10,16,26,33,41,38],
[2,14,17,30,38,45,43],
[13,19,20,32,38,42,4],
[7,11,13,33,37,43,26],
[7,9,10,12,26,38,39],
[1,3,20,25,36,45,24],
[5,9,27,29,37,40,19],
[6,11,19,20,28,32,34],
[3,8,15,27,30,45,44],
[1,4,12,16,18,38,8],
[6,10,17,30,37,38,40],
[1,9,17,21,29,33,24],
[17,18,31,32,33,34,10],
[3,7,8,18,20,42,45],
[8,13,18,32,39,45,7],
[3,14,33,37,38,42,10],
[1,12,17,28,35,41,10],
[6,12,24,27,35,37,41],
[1,15,19,40,42,44,17],
[13,33,37,40,41,45,2],
[2,7,15,24,30,45,28],
[6,8,18,31,38,45,42],
[2,5,10,18,31,32,30],
[1,3,4,6,14,41,12],
[10,11,23,24,36,37,35],
[7,16,31,36,37,38,11],
[3,11,37,39,41,43,13],
[10,12,13,15,25,29,20],
[4,15,21,33,39,41,25],
[14,19,20,35,38,40,26],
[13,14,15,26,35,39,25],
[1,8,24,31,34,44,6],
[7,9,12,27,39,43,28],
[3,8,9,27,29,40,36],
[5,9,12,20,21,26,27],
[5,18,20,36,42,43,32],
[3,10,19,24,32,45,12],
[7,8,24,34,36,41,1],
[3,4,9,11,22,42,37],
[5,9,34,37,38,39,12],
[9,16,27,36,41,44,5],
[1,27,28,32,37,40,18],
[9,12,24,25,29,31,36],
[6,11,16,18,31,43,2],
[7,12,15,24,37,40,43],
[4,5,14,35,42,45,34],
[14,27,30,31,38,40,17],
[6,13,27,31,32,37,4],
[4,11,14,21,23,43,32],
[1,5,6,24,27,42,32],
[1,5,19,20,24,30,27],
[8,19,25,31,34,36,33],
[14,23,26,31,39,45,28],
[6,7,19,25,28,38,45],
[19,23,30,37,43,45,38],
[3,8,27,31,41,44,11],
[3,8,17,23,38,45,13],
[12,15,28,36,39,40,13],
[13,18,21,23,26,39,15],
[9,11,27,31,32,38,22],
[13,16,25,36,37,38,19],
[2,12,17,19,28,42,34],
[4,19,20,21,32,34,43],
[2,16,24,27,28,35,21],
[6,10,16,40,41,43,21],
[11,15,24,39,41,44,7],
[2,4,15,28,31,34,35],
[1,11,17,21,24,44,33],
[1,4,8,13,37,39,7],
[21,22,26,27,31,37,8],
[13,21,22,24,26,37,4],
[4,6,13,17,28,40,39],
[8,9,10,12,24,44,35],
[5,10,19,31,44,45,27],
[5,11,14,29,32,33,12],
[4,5,9,11,23,38,35],
[17,25,35,36,39,44,23],
[4,5,15,16,22,42,2],
[2,6,8,14,21,22,34],
[5,11,13,19,31,36,7],
[4,19,26,27,30,42,7],
[1,3,18,20,26,27,38],
[5,7,28,29,39,43,44],
[2,20,33,35,37,40,10],
[5,11,19,21,34,43,31],
[4,11,20,26,35,37,16],
[1,8,14,18,29,44,20],
[16,20,27,33,35,39,38],
[7,16,17,33,36,40,1],
[2,3,7,15,43,44,4],
[5,7,20,25,28,37,32],
[2,3,4,5,20,24,42],
[11,12,18,21,31,38,8],
[12,13,17,20,33,41,8],
[10,19,22,23,25,37,39],
[2,7,18,20,24,33,37],
[14,25,31,34,40,44,24],
[3,11,14,31,32,37,38],
[1,2,3,15,20,25,43],
[1,3,21,29,35,37,30],
[3,12,14,35,40,45,5],
[1,3,11,24,30,32,7],
[12,14,27,33,39,44,17],
[3,11,24,38,39,44,26],
[5,6,13,14,17,20,7],
[14,21,22,25,30,36,43],
[12,19,20,25,41,45,2],
[7,12,16,34,42,45,4],
[35,36,37,41,44,45,30],
[7,10,19,22,35,40,31],
[15,20,23,26,39,44,28],
[6,14,18,26,36,39,13],
[4,8,11,18,37,45,33],
[5,6,24,25,32,37,8],
[8,14,18,30,31,44,15],
[8,14,32,35,37,45,28],
[19,24,27,30,31,34,36],
[1,2,8,18,29,38,42],
[4,10,14,19,21,45,9],
[1,2,4,8,19,38,14],
[1,2,6,16,20,33,41],
[2,18,24,34,40,42,5],
[13,15,27,29,34,40,35],
[14,21,23,32,40,45,44],
[2,15,20,21,29,34,22],
[5,9,17,25,39,43,32],
[1,5,11,12,18,23,9],
[1,10,13,16,37,43,6],
[4,17,30,32,33,34,15],
[19,26,28,31,33,36,17],
[13,14,18,22,35,39,16],
[3,9,24,30,33,34,18],
[4,19,21,24,26,41,35],
[4,16,25,29,34,35,1],
[2,11,13,15,31,42,10],
[16,27,35,37,43,45,19],
[3,10,31,40,42,43,30],
[24,27,28,30,36,39,4],
[9,12,27,36,39,45,14],
[5,13,18,19,22,42,31],
[6,9,10,11,39,41,27],
[7,11,26,28,29,44,16],
[1,5,21,25,38,41,24],
[22,34,36,40,42,45,44],
[3,7,8,34,39,41,1],
[1,18,30,41,42,43,32],
[4,9,13,18,21,34,7],
[19,26,30,33,35,39,37],
[5,18,28,30,42,45,2],
[16,19,20,32,33,41,4],
[6,19,21,35,40,45,20],
[3,8,11,12,13,36,33],
[1,5,13,26,29,34,43],
[1,2,10,13,18,19,15],
[2,18,25,28,37,39,16],
[2,11,21,34,41,42,27],
[21,25,33,34,35,36,17],
[4,6,13,21,40,42,36],
[2,19,27,35,41,42,25],
[2,3,13,20,27,44,9],
[4,15,17,26,36,37,43],
[26,27,28,42,43,45,8],
[12,16,30,34,40,44,19],
[8,12,29,31,42,43,2],
[3,13,17,18,19,28,8],
[9,11,15,20,28,43,13],
[10,11,27,28,37,39,19],
[7,9,20,25,36,39,15],
[2,16,30,36,41,42,11],
[6,14,22,28,35,39,16],
[3,12,20,23,31,35,43],
[4,7,15,18,23,26,13],
[3,17,23,34,41,45,43],
[8,10,11,14,15,21,37],
[7,19,24,27,42,45,31],
[19,23,25,28,38,42,17],
[12,30,34,36,37,45,39],
[3,5,10,29,32,43,35],
[7,20,22,27,40,43,1],
[2,8,32,33,35,36,18],
[4,16,23,25,29,42,1],
[7,17,18,28,30,45,27],
[1,11,16,17,36,40,8],
[12,28,30,34,38,43,9],
[4,6,10,11,32,37,30],
[3,11,13,14,17,21,38],
[3,4,10,17,19,22,38],
[5,10,22,34,36,44,35],
[2,4,25,31,34,37,17],
[1,2,6,9,25,28,31],
[11,14,19,26,28,41,2],
[4,9,28,33,36,45,26],
[26,29,30,33,41,42,43],
[7,18,31,33,36,40,27],
[7,20,22,23,29,43,1],
[1,5,34,36,42,44,33],
[7,18,22,23,29,44,12],
[1,4,5,6,9,31,17],
[4,10,12,22,24,33,29],
[8,10,20,34,41,45,28],
[17,32,33,34,42,44,35],
[5,14,15,27,30,45,10],
[17,22,24,26,35,40,42],
[1,3,17,32,35,45,8],
[1,7,11,23,37,42,6],
[1,3,10,27,29,37,11],
[6,9,16,23,24,32,43],
[6,7,14,15,20,36,3],
[1,3,8,21,22,31,20],
[8,17,27,31,34,43,14],
[5,32,34,40,41,45,6],
[6,22,24,36,38,44,19],
[3,14,24,33,35,36,17],
[1,21,24,26,29,42,27],
[17,20,29,35,38,44,10],
[4,26,28,29,33,40,37],
[1,17,20,24,30,41,27],
[4,12,16,23,34,43,26],
[2,12,37,39,41,45,33],
[6,8,13,23,31,36,21],
[16,23,27,34,42,45,11],
[6,10,15,17,19,34,14],
[1,2,3,14,27,42,39],
[5,7,11,13,20,33,6],
[17,18,24,25,26,30,1],
[3,12,24,27,30,32,14],
[10,13,25,29,33,35,38],
[2,18,29,32,43,44,37],
[1,3,15,22,25,37,43],
[2,5,24,32,34,44,28],
[6,15,17,18,35,40,23],
[3,12,18,32,40,43,38],
[2,4,11,17,26,27,1],
[5,9,12,16,29,41,21],
[5,19,22,25,28,43,26],
[5,8,14,15,19,39,35],
[10,12,15,16,26,39,38],
[3,7,10,15,36,38,33],
[2,3,7,17,22,24,45],
[4,25,33,36,40,43,39],
[14,15,18,21,26,36,39],
[3,20,23,36,38,40,5],
[3,8,15,27,29,35,21],
[14,15,19,30,38,43,8],
[2,8,25,36,39,42,11],
[6,29,36,39,41,45,13],
[10,24,25,33,40,44,1],
[7,10,16,25,29,44,6],
[10,14,30,31,33,37,19],
[17,21,31,37,40,44,7],
[1,8,21,27,36,39,37],
[7,8,14,32,33,39,42],
[2,4,15,16,20,29,1],
[2,3,11,16,26,44,35],
[2,10,12,15,22,44,1],
[4,7,16,19,33,40,30],
[6,10,18,26,37,38,3],
[14,17,26,31,36,45,27],
[8,13,15,23,31,38,39],
[1,10,20,27,33,35,17],
[3,11,21,30,38,45,39],
[6,31,35,38,39,44,1],
[17,18,19,21,23,32,1],
[13,20,23,35,38,43,34],
[7,13,18,19,25,26,6],
[6,7,13,15,21,43,8],
[16,17,22,30,37,43,36],
[7,27,30,33,35,37,42],
[1,10,23,26,28,40,31],
[2,3,11,26,37,43,39],
[9,26,35,37,40,42,2],
[4,7,32,33,40,41,9],
[6,14,19,25,34,44,11],
[7,9,18,23,28,35,32],
[8,17,20,35,36,44,4],
[1,5,13,34,39,40,11],
[9,18,23,25,35,37,1],
[1,20,26,28,37,43,27],
[4,5,7,18,20,25,31],
[2,4,21,26,43,44,16],
[7,8,27,29,36,43,6],
[5,13,17,18,33,42,44],
[4,5,6,8,17,39,25],
[6,12,17,18,31,32,21],
[10,14,18,20,23,30,41],
[6,30,38,39,40,43,26],
[3,12,13,19,32,35,29],
[3,4,9,17,32,37,1],
[6,7,24,37,38,40,33],
[3,4,16,30,31,37,13],
[2,6,12,31,33,40,15],
[22,23,25,37,38,42,26],
[2,11,21,25,39,45,44],
[1,7,36,37,41,42,14],
[9,25,30,33,41,44,6],
[2,4,16,17,36,39,14],
[8,19,25,34,37,39,9],
[2,9,16,25,26,40,42],
[14,15,26,27,40,42,34],
[16,24,29,40,41,42,3],
[14,27,30,31,40,42,2],
[11,16,19,21,27,31,30],
[9,13,21,25,32,42,2],
[10,23,29,33,37,40,16]
]
기존 선정한 번호와 비교해보자.
def rank(number1, number2):
count = 0
for l in number1[0:6]:
count += 1 if l in number2 else 0
r = 0
if count >= 6:
r = 1
elif count >= 5 and number[7] in number2:
r = 2
elif count >= 5 and number[7] in number2:
r = 3
elif count >= 4:
r = 4
elif count >= 3:
r = 5
return(r, number2)
for item in history:
a = sorted(item[0:6])
for b in games:
r, number = rank(a,b)
if r:
print(r, number)
: 키를 입력하고 아래처럼
set encoding=utf-8 또는
set encoding=euc-kr
pip install pytz 먼저 하고,
print datetime.datetime.now(pytz.timezone('Asia/Seoul')).strftime("%Y-%m-%d %H:00")
python으로 가까운 위도, 경도 좌표간 거리 계산하기
from math import sin, cos, sqrt, atan2, radians
# approximate radius of earth in km
R = 6373.0
lat1 = radians(52.2296756)
lon1 = radians(21.0122287)
lat2 = radians(52.406374)
lon2 = radians(16.9251681)
dlon = lon2 - lon1
dlat = lat2 - lat1
a = sin(dlat / 2)**2 + cos(lat1) * cos(lat2) * sin(dlon / 2)**2
c = 2 * atan2(sqrt(a), sqrt(1 - a))
distance = R * c
print("Result:", distance)
print("Should be:", 278.546, "km")
dictonary를 이용해 문자열 포멧팅하기
geopoint = {'latitude':41.123,'longitude':71.091}
print('{latitude} {longitude}'.format(**geopoint))
from
http://stackoverflow.com/questions/5952344/how-do-i-format-a-string-using-a-dictionary-in-python-3-x
또는,
print '%(latitude)s %(longitude)s' % {'latitude':41.123,'longitude':71.091}
<android.support.design.widget.FloatingActionButton
android:id="@+id/send"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="@dimen/screen_margin"
android:background="?android:selectableItemBackground"
app:backgroundTint="@color/selector"
app:layout_anchor="@id/app_bar"
app:layout_anchorGravity="bottom|end"/>
app:backgroundTint="@color/selector"
를 추가하면 된다.