摘要: while循环语法: while 条件: print() if语句就是判断条件,两者结合后就可以写猜年龄游戏: age1 = 25 #定一个正确年龄guess = True #定一个变量为真while guess: #为真时执行下面语句 in_age = int(input('输入年龄:')) #手 阅读全文
posted @ 2020-10-23 23:04 蜕变大哥 阅读(503) 评论(0) 推荐(0)