import random
result1 = []
result2 = []
for i in range(5):
_num = random.randint(1, 35)
while _num in result1:
_num = random.randint(1, 35)
result1.append(_num)
for i in range(2):
_num = random.randint(1, 12)
while _num in result2:
_num = random.randint(1, 12)
result2.append(_num)
result1.sort()
result2.sort()
print(result1 + result2)
运行后拿到结果去彩票店买超级大乐透,已中过5元