Python快速创建HTTP服务器
Python创建HTTP服务器
切换到需要被访问的目录下
1.如果python为2.x,则可执行:
$ python -m SimpleHTTPServer
或 $ python2 -m SimpleHTTPServer
2.如果python为3.x,则可执行:
$ python -m http.server
或 $ python3 -m http.server
1.如果python为2.x,则可执行:
$ python -m SimpleHTTPServer
或 $ python2 -m SimpleHTTPServer
2.如果python为3.x,则可执行:
$ python -m http.server
或 $ python3 -m http.server