W3School TIY Editor
W3School 在线教程
改变方向
暗黑模式
python_ref_keyword_elif.py:
for i in range(-5, 5): if i > 0: print("YES") elif i == 0: print("WHATEVER") else: print("NO")
x
for
i
in
range
(
-
5
,
5
):
if
i
>
0
:
print
(
"YES"
)
elif
i
==
0
:
print
(
"WHATEVER"
)
else
:
print
(
"NO"
)