04 2018 档案

摘要:while True: a = int(input('摄氏度转换为华氏温度请按 1\n华氏度转换为摄氏度请按 2\n退出请按 3\n')) if a==1: c = float(input('请输入摄氏温度:')) f = c*9/5+32 print('摄氏{:.2f}的华氏为{:.2f}'.format(c,f)) el... 阅读全文
posted @ 2018-04-25 21:42 SallyAu 阅读(1977) 评论(0) 推荐(0) 编辑
摘要:a = input('请输入一个数字') b = input('请输入二个数字') sum2 = int(a) + int(b) print('两个数之和是:{}'.format(sum2)) 阅读全文
posted @ 2018-04-18 21:35 SallyAu 阅读(91) 评论(0) 推荐(0) 编辑
摘要:name1 = input('please write down your first name:') name2 = input('please write down your second name:') car = input('please write down a traffic tool 阅读全文
posted @ 2018-04-18 20:48 SallyAu 阅读(134) 评论(0) 推荐(0) 编辑