摘要:
for i in range(0,10,2): print("loop:",i) loop: 0loop: 2loop: 4loop: 6loop: 8 阅读全文
摘要:
语法: while 条件: 执行语句... 猜年龄只能猜三次 age = 18 count = 0 while count<3: age = int(input("age:")) if age == 18: print("对了") exit() elif age >18: print("大了") e 阅读全文