【发布时间】:2016-03-20 05:53:14
【问题描述】:
我试图在 IIS 上运行 python 3.x 脚本,我遇到了这个答案:https://stackoverflow.com/a/9745836/5457561
我尝试了这种方法,但它似乎不起作用,我收到了The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are " File "C:\dev\python\HelloWorld.py", line 1 print 'Content-Type: text/plain' ^ SyntaxError: Missing parentheses in call to 'print'"。
我只是想知道是否有一种方法可以解决这个问题并在 IIS 10 上使用 python 3.x 脚本
【问题讨论】:
-
更正:这是一个 Python 2 脚本。如果是 Python 3,就会有括号。