0
蟒蛇LAMPP(Linux)的我有一個文件:此文件test.py 權限設置爲777,我試圖運行下面的腳本:運行通過Apache
#!/usr/lib/python2.7
print("Content-Type: text/html\n")
print("test")
我收到以下錯誤:
The server encountered an internal error and was unable to complete your request.
Error message:
End of script output before headers: test.py
If you think this is a server error, please contact the webmaster.
Error 500
Python的安裝:
$ python --version
>> Python 2.7.4