摘要:
死循环: while 1 == 1: print("ok") 约束循环: count = 0 while count < 6: print('ok') count = count + 1 print(123) count = 0 while count < 6: print(count) count 阅读全文
posted @ 2025-05-19 20:16
大猫学编程
阅读(9)
评论(0)
推荐(0)
摘要:
if条件语句,一般来说用4个空格做代码块前缀,如下if语句的嵌套 if 1==1: if 2==2: print('欢迎进入学校') else: print('欢迎进入游乐园') else: print('end') 或者多次判断: """ inp = input('请输入网吧会员级别:') if 阅读全文
posted @ 2025-05-19 20:03
大猫学编程
阅读(15)
评论(0)
推荐(0)

浙公网安备 33010602011771号