你的老师要求你把大量的温度读数从摄氏转换为华氏刻度。他们给你提供了使用的公式:F=C* 9/5 + 32
C是以摄氏度量度的温度,F是华氏度
我的代码:
c = input("celsius: ")
f = c*9/5+32
print(c," degrees Celcius is ",f," degrees fahrenheit")发布于 2020-01-08 02:18:49
F= int(c)*9/5+32
它可以把摄氏转换成华氏,但这只是一个近似.
https://stackoverflow.com/questions/59638535
复制相似问题