ARTICLE DETAIL

建站实战干货

来自一线的建站与推广经验沉淀,每一条都经过真实交付验证。

Python逻辑运算 _ 今年过节能收礼吗

2026/8/10 21:23:59 拓冰建站 浏览量
Python逻辑运算 _ 今年过节能收礼吗
house_work_count = int(input("house_work_count:"))
red_envelope_count = int(input("red_envelope_count:"))
shopping_count = int(input("shopping_count:"))
has_been_angry = int(input("has_been_angry:"))

if(house_work_count > 10 and red_envelope_count > 1 and shopping_count > 4 and not has_been_angry or has_been_angry):
print("磨拳擦掌等待Switch!")
else:
print("Switch mei le!")