Skip to content

简介

内置 HTTPServer

最简单快速的启动一个 http server:

https://docs.python.org/zh-cn/3/library/http.server.html

python3.7 相关源码

https://github.com/python/cpython/blob/3.7/Lib/http/server.py

执行以下命令

1
python -m http.server 8000

即可在命令执行目录启动一个 http 服务,可以查看和下载文件(不推荐生产环境使用)

有时可用来检测服务器某个端口是否开放

流行框架

https://hotframeworks.com/languages/python/

其他

文件上传下载服务:

https://github.com/sc0tfree/updog