2022-10-25 http.server

内建 http server

 python -m http.server --help
usage: server.py [-h] [--cgi] [--bind ADDRESS] [--directory DIRECTORY] [port]

示例

$ python -m http.server -b 127.0.0.1
Serving HTTP on 127.0.0.1 port 8000 (http://127.0.0.1:8000/) ...

你可能感兴趣的:(2022-10-25 http.server)