码迷,mamicode.com
首页 > 编程语言 > 详细

python 开启http服务并下载文件

时间:2020-02-18 14:50:38      阅读:81      评论:0      收藏:0      [点我收藏+]

标签:simple   tps   服务   get   http服务   test   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/文件名

python 开启http服务并下载文件

标签:simple   tps   服务   get   http服务   test   http   下载文件   文件名   

原文地址:https://www.cnblogs.com/hankyoon/p/12326115.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!