代码如下:
# python3
python3 -m http.server
python3 -m http.server HTTP端口
# python2
python -m SimpleHTTPServer
python -m SimpleHTTPServer HTTP端口
在对应的路径下执行就可!
代码如下:
# python3
python3 -m http.server
python3 -m http.server HTTP端口
# python2
python -m SimpleHTTPServer
python -m SimpleHTTPServer HTTP端口
在对应的路径下执行就可!