第一个hello world:
关于cgi 还有fastcgi的原理 这两个图说的比较明白:
python 的 cgi 教程不错的讲解
http://www.tutorialspoint.com/python/python_cgi_programming.htm