转自:
http://blog.licess.com/simplehttpserver/
http://www.lpfrx.com/archives/133/
shell中执行:
python -m SimpleHTTPServer
或者在脚本中加入:
import SimpleHTTPServer
SimpleHTTPServer.test()