主页
Python
Python 逻辑运算符
demo_logical_combined
运行 ❯
×
更改方向
保存代码
更改主题
age = 25 is_student = False has_discount_code = True if (age < 18 or age > 65) and not is_student or has_discount_code: print("Discount applies!")
Discountapplies!