Python/gloss python if nested
来自菜鸟教程
<languages />
Python嵌套If
如果里面如果
你可以有
if
里面的陈述
if
声明,这称为
nested
if
声明。
例
x = 41
if x > 10:
print("Above ten,")
if x > 20:
print("and
also above 20!")
else:
print("but not
above 20.")