windows 下载并安装Python 3.5.2,例如这里想把命令E:\xxx作为提供下载的目录,那么在cmd里cd到该目录下,并执行命令:
python.exe -m SimpleHTTPServer
如果提示错误:
No module named SimpleHTTPServer
则试一下命令:
python.exe -m http.server
以下是命令执行记录作为参考:
E:\xxx>python -m SimpleHTTPServer
提示 No module named SimpleHTTPServer
E:\xxx>python -m http.server
原因是Python 3 用 http.server 代替了 SimpleHTTPServer