摘要: a=int(input('摄氏温度转为华氏温度请按1\n华氏温度转为摄氏温度请按2\n'))if a=='1': c=input('请输入摄氏温度:') f=float(c)*9/5+32 print('{}摄氏温度转为华氏温度是:{}'.format(c,f))else: f=float(inpu 阅读全文
posted @ 2018-04-25 21:42 danly16 阅读(174) 评论(0) 推荐(0) 编辑
摘要: a=input('请输入华氏温度') sum2=int(a)*5/9-32print('转换的摄氏温度是;{}'.format(sum2)) a=input('请输入摄氏温度') sum2=int(a)*5/9+32print('转换的华氏温度是;{}'.format(sum2)) 阅读全文
posted @ 2018-04-25 21:17 danly16 阅读(57) 评论(2) 推荐(0) 编辑