标签:highlight ima pytho input sum int 9.png pre png
a = input(‘输入一个数字:‘) b = input(‘再输入一个数字:‘) sum2=int(a)+int(b) print(‘两个数之和是{}‘.format(sum2))

c = input(‘输入摄氏温度:‘)
f = float(c)*9/5+32
print(‘{}摄氏温度转化为华氏温度是{}‘.format(c,f))

f = input(‘输入华氏温度:‘)
c = 5/9*(float(f)-32)
print(‘{}摄氏温度转化为华氏温度是{}‘.format(f,c))

标签:highlight ima pytho input sum int 9.png pre png
原文地址:https://www.cnblogs.com/hhhhuang/p/8947117.html