demo.py(random随机数):
import random # 导入random工具包 num = random.randint(1,10) # 返回1-10的随机整数,包括1 包括10 print(num)