Python开启HTTP服务

Python <= 2.3
python -c "import SimpleHTTPServer as s; s.test();" 8000

Python >= 2.4
python -m SimpleHTTPServer 8000

Python 3.x
python -m http.server 8000

posted @ 2019-04-28 13:38  orange777  阅读(10841)  评论(0编辑  收藏  举报