主页
Python
Python 嵌套 if 语句
demo_nested_license
运行 ❯
×
更改方向
保存代码
更改主题
age = 25 has_license = True if age >= 18: if has_license: print("You can drive") else: print("You need a license") else: print("You are too young to drive")
Youcandrive