if 判断语句 格式 if 判断: 执行 elif 判断: else: 执行 for in循环语句 while 循环语句 满足条件 就循环 随机数的生成 import random answer =random.randint(1,100) 相关文章: