515439429 发表于 2017-5-3 12:25:55

使用python SimpleHTTPServer 快速搭建Web服务器

 

python -m SimpleHTTPServer 8080 #不指定端口默认为8000

      执行上面的命令,就会启动web服务器了,可以下载用户启动路径的文件。一个网友根据SimpleHTTPServer源码写了一个支持上传功能的版本。我贴到附件。


  参考:
  http://coolshell.cn/articles/1480.html
  http://blog.licess.org/simplehttpserver/
  --end
页: [1]
查看完整版本: 使用python SimpleHTTPServer 快速搭建Web服务器