zoukankan      html  css  js  c++  java
  • 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("你输入月份有误")

  • 相关阅读:
    light oj 1007
    51nod 1298 圆与三角形
    codeforces 899C Dividing the numbers
    zznu 1996 : 正三角形和圆的爱情
    zznu 2081 : 舰队管理
    zzun 2076 : 三花聚顶神功
    zznu 2054 : 油田
    机械设备--第九届省赛--深搜
    设计模式-单例模式、工厂模式
    Spring Boot 遇到空指针
  • 原文地址:https://www.cnblogs.com/lowen107/p/9807034.html
Copyright © 2011-2022 走看看