标签:break print pre else 循环语句 nbsp 条件语句 oat color
while True: a=input(‘1.摄氏度2.华氏度‘) if a ==‘1‘: c =input(‘请输入摄氏度‘) f =float(c)*9/5+32 print(‘华氏度为{}‘.format(f)) elif a==‘2‘: f = float(input(‘请输入华氏度‘)) c = 5/9*(f-32) print(‘华氏度为{}‘.format(c)) else: break
标签:break print pre else 循环语句 nbsp 条件语句 oat color
原文地址:https://www.cnblogs.com/xiefei33--/p/8947375.html