发布时间:2019-08-06 13:56:23编辑:auto阅读(2326)
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之基础篇(一)
52423
52347
42450
39353
33817
30765
29523
24443
24300
22668
202°
206°
211°
248°
201°
342°
334°
353°
354°
400°