发布时间:2019-08-06 13:56:23编辑:auto阅读(2606)
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之基础篇(一)
55120
41923
36504
31909
26814
26484
25023
20646
16554
15966
3180°
2877°
2970°
3121°
3055°
3332°
3230°
3062°
3053°
3033°