# 温度从摄氏度转化到华氏度
# 比如摄氏度37.5度相当于多少华氏度
celsius = 37.5
根据相关公式,代码如下:
fahrenheit = (celsius * 1.8) + 32
print('%0.1f degree Celsius is equal to %0.1f degree Fahrenheit' %(celsius,fahrenheit))
整个代码相当简单,这里初学者应该理解电
# 温度从摄氏度转化到华氏度
# 比如摄氏度37.5度相当于多少华氏度
celsius = 37.5
根据相关公式,代码如下:
fahrenheit = (celsius * 1.8) + 32
print('%0.1f degree Celsius is equal to %0.1f degree Fahrenheit' %(celsius,fahrenheit))
整个代码相当简单,这里初学者应该理解电