python 摄氏温度转华氏温度

code

# 用户输入摄氏温度
celsius = 34.43
# 计算华氏温度
fahrenheit = (celsius * 1.8) + 32
print('%0.1f 摄氏温度转为华氏温度为 %0.1f ' %(celsius,fahrenheit))

 

 

 

 

 

 

 

 

posted @ 2020-05-03 15:12  anobscureretreat  阅读(1470)  评论(0)    收藏  举报