发布时间:2019-08-06 13:56:23编辑:auto阅读(2254)
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之基础篇(一)
51942
51734
42033
38876
33363
30332
28973
23988
23903
22263
422°
2606°
3290°
2738°
2723°
3484°
2690°
3518°
5803°
5592°