摘要: while循环 import random count = random.randint(0,10)#随机生成0~10之间数 i=0 while i<5: number = int(input("请输入")) if number<count: print("小了") elif number>coun 阅读全文
posted @ 2020-03-13 17:56 打死那个龟孙 阅读(1462) 评论(0) 推荐(0) 编辑
摘要: 单分支 today_weather = "rain_day" if today_weather == "rain_day": print("带伞") 双分支 age = 18 if age >= 18: print("已成年") else: print("未成年") 多分支 count = 20if 阅读全文
posted @ 2020-03-13 13:59 打死那个龟孙 阅读(172) 评论(0) 推荐(0) 编辑