2007年3月6日 星期二

[FYI] Standard Gems: SimpleHTTPServer.test()

From Raving Techno Rant: Standard Gems: SimpleHTTPServer.test()

You can start up a web server from the current directory on port 8000 with a single line of python.

python -c "from SimpleHTTPServer import test; test()"
Even simpler:
python -m SimpleHTTPServer
Python Rules!!

沒有留言: