random

# 7.从0-99这个100个数中随机取出10个不重复的数
import random
import time
while 1:
time.sleep(1)
print(random.sample(range(0, 99), k=10))
原文地址:https://www.cnblogs.com/xingkongzhizhu/p/11279334.html