1.输入input(“问题”) 2.random 导入 import random 选数 random.choice(列表) 随机整数 random.randint(最小,最大) if if(事件1): elif(事件2): else(事件3):