我在python中创建了Hello world脚本。每次我尝试运行它时,Web浏览器都会向我发送错误500
错误讯息: 标题前的脚本输出结束:test.py
脚本:
#!C:\Python35\python.exe
print("Content-Type: text/html")
print()
print("<TITLE>CGI script output</TITLE>")
print("<H1>This is my first CGI script</H1>")
print("Hello, world!")
这是apache错误输出
End of script output before headers: test.py
AH01215: C:\\Python35\\python.exe: can't open file '%L': [Errno 2] No such file or directory: C:/xampp/cgi-bin/test.py