标签:input img 图片 求和 pre 类型 div mat class
a = input(‘1.摄氏转华氏 2.华氏转摄氏‘)
if a == ‘1‘:
c = input(‘请输入摄氏温度:‘)
f = float(c)*9/5+32
print(‘{}摄氏温度转为华氏温度是{}‘.format(c,f))
else:
f = float(input(‘请输入华氏温度:‘))
c = 5/9*(f-32)
print(‘{:.2f}华氏温度转为摄氏温度是{:.2f}‘.format(f,c))

标签:input img 图片 求和 pre 类型 div mat class
原文地址:https://www.cnblogs.com/CarmanWong/p/8947138.html