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