一、平均油耗计算
python
total = float(input("请输入加油的总金额:"))
kilometers = int(input("请输入行驶的总里程:"))
average = total / kilometers
print("平均油耗是:", average,"元/公里")
二、华氏温度转摄氏温度
python
fahrenheit = int(input("请输入华氏温度:"))
centigrade = (fahrenheit - 32) * 5 / 9
print("对应的摄氏温度是:" ,centigrade,"度")