主页
Python
Python While 循环
demo_while_else
运行 ❯
×
更改方向
保存代码
更改主题
i = 1 while i < 6: print(i) i += 1 else: print("i is no longer less than 6")
1
2
3
4
5
i is no longer less than 6