在.py文件中加上这个就好了。 print('Content-type:text/html \n\n') 不加这个,有时候啥也不显示。 转载于:https://www.cnblogs.com/gwj99/p/7599985.html