📜  python if - Python 代码示例

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

代码示例6
def e(x):
    if x == "Sunny" and x == "sunny":
          print('Remember your sunglasses!')
    elif x == "Rainy" and x == "rainy":
          print('Do not forget your umbrella!')
    elif x == 'Thunderstorm' or x == 'thunderstorm' or x =='Stormy' or x == 'stormy':
      print('Stay Home!')
    
x = input('What is the weather?')