标签:col .so python logs sort inpu and random 不重复
1 import random 2 3 x = int(input(‘请输入题库:‘)) 4 y = int(input(‘请输入次数:‘)) 5 sep = list(range(1,x+1)) 6 a = random.sample(sep,y) 7 a.sort() 8 print(a)
标签:col .so python logs sort inpu and random 不重复
原文地址:http://www.cnblogs.com/pythonbin/p/7637704.html