发布时间:2019-08-06 13:56:23编辑:auto阅读(2416)
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之基础篇(一)
53111
40031
34414
30164
25063
24859
23241
16721
14872
14365
710°
659°
722°
740°
785°
914°
883°
898°
992°
918°