W3School TIY Editor
W3School 在线教程
改变方向
暗黑模式
python_while_else.py:
i = 1 while i < 6: print(i) i += 1 else: print("i is no longer less than 6")
x
i
=
1
while
i
<
6
:
print
(
i
)
i
+=
1
else
:
print
(
"i is no longer less than 6"
)