📜  条件python代码示例

📅  最后修改于: 2022-03-11 14:45:49.344000             🧑  作者: Mango

代码示例3
with_sun = True
in_week = False

if with_sun and not in_week:
   print("we go to the beach !")
elif with_sun and in_week:
   print("we go to work !")
else:
   print("we stay at home !")