大家好,我在windows XP系统下输入命令 python -m CGIHTTPServer 搭建了CGI服务器
测试脚本为
print "Content-Type: text/html"
print r'<p> Hello word!'
然后输入:http://localhost:8000/test.py
得到的结果为:
print "Content-Type: text/html"
print r'<p> Hello word!'
可见脚本并没有执行,如何解决呢?
我用的Python是 Python 2.5.2