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 @ 2021-03-05 10:46  !rbash  阅读(163)  评论(0编辑  收藏  举报