lower,upper = map(int,input().split())
func = lambda f: 5 * (f-32)/9
if lower > upper or upper>100:
print('Invalid.')
else:
print("fahr celsius")
while lower <= upper:
fahr = lower
celsius = func(fahr)
print('{:d}{:>6.1f}'.format(fahr,celsius))
lower += 2
浙大版《Python 程序设计》题目集 第2章-10 输出华氏-摄氏温度转换表 (15分)
猜你喜欢
转载自blog.csdn.net/weixin_42229583/article/details/104556739
今日推荐
周排行