标签:python
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.‘)
标签:python
原文地址:http://huzhongliang.blog.51cto.com/1817180/1890445