发布时间:2019-08-06 13:56:23编辑:auto阅读(2588)
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
#'\n'是换行
easygui.msgbox('this is'+ str(c)+ '\n'+'degrees celsius.')
上一篇: Python31 Socket2
下一篇: python之基础篇(一)
54956
41751
36337
31770
26670
26363
24886
20492
16434
15853
2981°
2708°
2808°
2954°
2889°
3152°
3043°
2888°
2879°
2857°