***10选3的彩票号码 ***
**```
import random
num_lsit=[]
num=0
while len(num_lsit) < 3:
num=random.randint(1,10)
if num not in num_lsit:
num_lsit.append(num)
print(f’彩票10选3{num_lsit}’)
> D:\ProgramData\Anaconda3\python.exe C:/Users/Administrator/Desktop/python.py
彩票10选3[8, 1, 3]
Process finished with exit code 0
未完待续