代码如下:
import random
def a_b():
n=[]
a = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30,
31, 32, 33]
b = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16]
c=1
while c<=6:
d=random.choice(a)
n.append(d)
a.remove(d)
c+=1
e=(random.choice(b))
b.remove(e)
n.sort()
print(n,end='......')
print(e)
g=int(input('请问需要几串号码'))
f=1
while f<=g:
a_b()
print(' ',end="\n")
f+=1