a=input('1.摄氏转华氏 2.华氏转摄氏') if a=='1': c=input('请输入摄氏温度:') f=float(c)*9/5+32 print('{}摄氏温度转为华氏温度是{}'.format(c,f)) else: c=input('请输入摄氏温度:') f=float(c)*9/5+32 print('{}摄氏温度转为华氏温度是{}'.format(c,f))
温度转换
猜你喜欢
转载自www.cnblogs.com/commetoi/p/8947081.html
今日推荐
周排行