发布时间:2019-08-06 13:56:23编辑:auto阅读(2203)
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之基础篇(一)
51592
51178
41683
38445
32931
29912
28620
23584
23516
21865
2019°
2732°
2282°
2209°
2682°
2237°
2984°
4919°
4776°
3393°