编写一个函数,将华氏温度转换为摄氏温度。公式为C=(F-32)*5/9
收起
try: a = float(input("请输入华氏温度:")) C = (a-32)*5/9 print(f"{C:.2f}") except: print("输入错误")
报告相同问题?