例子 import random 产生随机整数 import random secret = random.randint(0,10) 转载于:https://www.cnblogs.com/PythonFCG/p/8324949.html