import easyguieasygui.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.')
来源: