📜  英尺到米python代码示例

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

代码示例1
input1 = input('feet to meter or meter to feet? ')

if input1 == 'feet to meter':
    feet = float(input('enter feet: '))
    meter = feet *0.3048
    print(meter)

if input1 == 'meter to feet':
    meter = float(input('enter meter: '))
    feet = meter/0.3048
    print(feet)