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

wget ip:port/文件名

猜你喜欢

转载自www.cnblogs.com/hankyoon/p/12326115.html