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("你输入月份有误")

  • 相关阅读:
    二次识别
    IPC
    HW
    数据库异常:SQL Error: 0, SQLState: S0022
    mysql 分页查询
    [Err] 1248
    名句摘抄
    理智向左 疯狂向右
    kindle怎么导入电子书
    设置 myeclipse 编码格式
  • 原文地址:https://www.cnblogs.com/lowen107/p/9807034.html
Copyright © 2011-2022 走看看