# -*- coding: utf-8 -*-
import random
# for i in range(7):
# print(random.randrange(1,49))
d = list(range(1,50))
random.shuffle(d)
d1_6 = d[:6]
d1_6.sort()
print(d1_6)
d7 = d[6]
print(d7)
for j in range(10000):
c = 0
sf = 0
pguess = list(range(1,50))
random.shuffle(pguess)
p=pguess[:6]
for i in p:
if i in d1_6:
c+=1
if i == d7:
sf = 1
if c>=4:
print('中:',c,'號',p,end=' ')
if sf == 1:
print('中特別號')
else:
print()
沒有留言:
張貼留言