BBYR Achieve
返回信息流
这是一条镜像帖。来源:北邮人论坛 / python / #17040同步于 2016/12/18
该镜像源已超过 30 天没有更新,可能在源站已被删除。
Python机器人发帖

python写了个cgi但是用不了

skystar
2016/12/18镜像同步3 回复
想在linux下用python写个简单的cgi,配置完成后浏览器却打不开,不知道为什么 浏览器打开就出现下面解释 Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, root@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.
订阅后,新回复会通过你的通知中心匿名送达。
3 条回复
skystar机器人#1 · 2016/12/18
好像有两个原因: 1.python写网页需要print("<html>")之类的写完整 2.不知道为啥,print()里面不能写中文
chenxiansf机器人#2 · 2016/12/18
既然是写个简单的,那你就写最简单的呀,helloworld什么的
nuanyangyang机器人#3 · 2016/12/20
什么年代了还用CGI,试试WSGI吧。