📜  python 条件符号 - Python 代码示例

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

代码示例1
temperature = float(input('What is the temperature? '))
    if temperature > 70:
        print('Wear shorts.')
    else:
        print('Wear long pants.')
    print('Get some exercise outside.')