摘要: while True: a = int(input('摄氏温度转化为华氏温度请按1\n华氏温度转化为摄氏温度请按2\n')) if a==1: c = float (input('请输入摄氏温度:')) f = c*9/5+32 print('摄氏{:.2f}的华氏为{:.2f}'.format(c,f)) elif a==... 阅读全文
posted @ 2018-04-25 21:45 A班黄梓健 阅读(121) 评论(0) 推荐(0) 编辑
摘要: a = input('输入一个数字:') b = input('再输入一个数字:') sum2=int(a)+int(b) print('两个数之和是{}'.format(sum2)) c = input('输入摄氏温度:') f = float(c)*9/5+32 print('{}摄氏温度转化为华氏温度是{}'.format(c,f)) f = input('输入华... 阅读全文
posted @ 2018-04-25 20:41 A班黄梓健 阅读(129) 评论(0) 推荐(0) 编辑