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
easygui.msgbox('this is'+ str(c)+ 'degrees celsius.')
转载于:https://blog.51cto.com/huzhongliang/1890436