码迷,mamicode.com
首页 > 其他好文 > 详细

符彬祺 作业2

时间:2018-04-23 18:39:14      阅读:130      评论:0      收藏:0      [点我收藏+]

标签:img   bsp   desktop   ima   com   png   form   format   ogr   

技术分享图片

>>> a=input(请输入一个数字)
请输入一个数字666
>>> b=input(请输入另一个数字)
请输入另一个数字888
>>> suml=int(a)+int(b)
>>> print(二数之和是:{}.format(suml))
二数之和是:1554
>>> a=input(请输入摄氏温度)
请输入摄氏温度16
>>> suml=int(a)*9/5+32
>>> 
================== RESTART: C:/Users/teacher/Desktop/fbq.py ==================
请输入一个数字
================== RESTART: C:/Users/teacher/Desktop/fbq.py ==================
请输入一个数字666
请输入另一个数字888
二数之和是:1554
请输入摄氏温度16
华氏温度是:60.8
>>> 
== RESTART: C:/Users/teacher/AppData/Local/Programs/Python/Python36/fbq2.py ==
摄氏度转换为华氏度请按1
华氏度转化为摄氏度按2
1
输入摄氏温度12
12.00摄氏温度转为华氏温度为53.60
>>> 2
2
>>> 
== RESTART: C:/Users/teacher/AppData/Local/Programs/Python/Python36/fbq2.py ==
摄氏度转换为华氏度请按1
华氏度转化为摄氏度按2
2
请输入华氏温度:16
16.000000华氏温度转换为摄氏温度:-8.89
>>>

 

符彬祺 作业2

标签:img   bsp   desktop   ima   com   png   form   format   ogr   

原文地址:https://www.cnblogs.com/kelphia/p/8920273.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!