作业耶

>>>>>> a=input('请输入一个数字')
请输入一个数字25
>>> b=input('请输入另一个数')
请输入另一个数30
>>> sum1=int(a)+int(b)
>>> print('二数之和是:{}'.format(sum1))
二数之和是:55
>>> a=input('请输入摄氏温度')
请输入摄氏温度66
>>> sum1=int(a)*9/5+32
>>> print('华氏温度是:{}'.format(sum1))
华氏温度是:150.8
>>>

猜你喜欢

转载自www.cnblogs.com/jiangchengyu/p/8919234.html