主页
Python
Python 嵌套 if 语句
demo_nested_three_levels
运行 ❯
×
更改方向
保存代码
更改主题
score = 85 attendance = 90 submitted = True if score >= 60: if attendance >= 80: if submitted: print("Pass with good standing") else: print("Pass but missing assignment") else: print("Pass but low attendance") else: print("Fail")
Passwithgoodstanding