04 2018 档案

摘要: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(in 阅读全文
posted @ 2018-04-25 21:03 王滢 阅读(289) 评论(0) 推荐(0)
摘要: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(in 阅读全文
posted @ 2018-04-25 20:40 王滢 阅读(207) 评论(0) 推荐(0)
摘要:a=input('请输入一个数字:') b=input('请再输入一个数字') sum2=int(a)+int(b) print('两个数的和是:{}'.format(sum2)) a=input('请输入一个摄氏温度') sum2=int(a)*9/5 +32 print('转换的华氏温度是:{}'.format(sum2)) 阅读全文
posted @ 2018-04-18 21:48 王滢 阅读(168) 评论(0) 推荐(0)
摘要:name1=input('请输入一个名字') name2=input('请再输入一个名字') print('护士{}看到病人在病房喝酒,就走过去小声叮嘱说“小心肝”,病人{}微笑着说“小宝贝”'.format(name1,name2)) 阅读全文
posted @ 2018-04-18 20:38 王滢 阅读(168) 评论(0) 推荐(0)