主页
Python
Python If ... Else 语句
demo_if_nested
运行 ❯
×
更改方向
保存代码
更改主题
x = 41 if x > 10: print("Above ten,") if x > 20: print("and also above 20!") else: print("but not above 20.")
Above ten,
and also above 20!