发布时间:2019-08-06 13:56:23编辑:auto阅读(2431)
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之基础篇(一)
53266
40148
34528
30265
25176
24968
23372
16895
14965
14479
855°
782°
853°
862°
917°
1034°
1030°
1024°
1133°
1045°