ARTICLE DETAIL

资讯详情

深耕网站建设、视觉设计与SEO优化的一线实战洞察。

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

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!")
返回列表