首页 > 编程语言 > 详细

python练习-easygui-温度转换

时间:2017-01-10 00:09:06      阅读:220      评论:0      收藏:0      [点我收藏+]
import easygui
easygui.msgbox(‘this program converts fahrenheit to celsius‘)   
t=easygui.enterbox(‘type the T temperature in fahrenheit:‘)
f=float(t)
c=(f-32)*5.0/9
easygui.msgbox(‘this is‘+ str(c)+ ‘degrees celsius.‘)


python练习-easygui-温度转换

原文:http://huzhongliang.blog.51cto.com/1817180/1890436

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!