python -m SimpleHTTPServer 8080 #不指定端口默认为8000
执行上面的命令,就会启动web服务器了,可以下载用户启动路径的文件。一个网友根据SimpleHTTPServer源码写了一个支持上传功能的版本。我贴到附件。

参考:
http://coolshell.cn/articles/1480.html
http://blog.licess.org/simplehttpserver/
--end
本文介绍如何使用Python的SimpleHTTPServer模块快速启动一个简易的HTTP服务器,并默认监听8000端口。此外还提供了一个支持文件上传功能的SimpleHTTPServer定制版本。
python -m SimpleHTTPServer 8080 #不指定端口默认为8000
执行上面的命令,就会启动web服务器了,可以下载用户启动路径的文件。一个网友根据SimpleHTTPServer源码写了一个支持上传功能的版本。我贴到附件。

参考:
http://coolshell.cn/articles/1480.html
http://blog.licess.org/simplehttpserver/
--end
352
548

被折叠的 条评论
为什么被折叠?