python学习第一天

用户输入一个月份. 然后判断月份是多少月. 根据不不同的月份, 打印出不同的饮食(根据个人习惯和老家习惯随意编写)

foodstuff = input("请输入一个月份")

if int(foodstuff) ==  1:

print("一月份,天气这么冷.吃个火锅吧")

elif int(foodstuff) == 2:

print("过年了,不吃个火锅庆祝一下吗?")

elif int(foodstuff) == 3:

print("又要开始上班了,吃个香菜压压惊")

elif int(foodstuff) == 4:

print("天气回暖,鸡蛋很好吃")

elif int(foodstuff) == 5:

print("人生且能没有肉")

elif int(foodstuff) == 6:

print("既然有肉,就再吃一个月")

elif int(foodstuff) == 6:

print("总吃肉对身体不好,现在开始吃白菜")

elif int(foodstuff) == 7:

print("麻辣烫皇帝娃娃菜了解一下")

elif int(foodstuff) == 8:

print("其实土豆也不错")

elif int(foodstuff) == 9:

print("大热天,吃个冰淇淋吧")

elif int(foodstuff) == 10:

print("国庆节了,不吃了.到处走走吧")

elif int(foodstuff) == 11:

print("双11都来了,吃什么吃,买起来")

elif int(foodstuff) == 12:

print("手都剁了,还吃什么")

else:print("你输入月份有误")

转载于:https://www.cnblogs.com/lowen107/p/9807034.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值