Heqy  

2018年4月23日

摘要: while True: a = input('1:摄氏度转华氏\n2 :华氏转摄氏\n3 :退出\n') if a =='1': f = input('请输入华氏温度:') c = 5/9*(float(f)-32) print('{}华氏温度转为摄氏温度为:{:.2f}'.format(f,c)) 阅读全文
posted @ 2018-04-23 16:49 Heqy 阅读(279) 评论(0) 推荐(0)