while i < 33:
i += 1
redlist.append(i) #红色球的抽取列表
while b < 16:
b += 1
bluelist.append(b) # 蓝色球的抽取列表
print('输入数字以确认生成的双色球组数')
a = input("请输入数字,并回车确认")
a = int(a) + 1
for e in range(1, a):
boll = []
red = random.sample(redlist, 6) # 从红色球里抽取6个数字
red.sort()
blue = random.choice(bluelist)
red.append(blue)
boll = red
print(boll)
使用道具 举报