发布时间:2019-08-06 13:56:23编辑:auto阅读(2175)
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之基础篇(一)
51277
50724
41326
38139
32600
29507
28360
23226
23194
21517
1592°
2310°
1922°
1862°
2189°
1905°
2595°
4347°
4200°
2986°