
什么是python -m SimpleHTTPServer的Python 3等价物`?
从文档:
The
SimpleHTTPServermodule has been merged intohttp.serverin Python
3.0. The 2to3 tool will automatically adapt imports when converting your
sources to 3.0.
所以,你的命令是python3 -m http.server。
相当于:
python3 -m http.server
未经作者同意,本文严禁转载,违者必究!




近期评论