[Python] 使用 Python 内置服务器模块
Opened this issue · 0 comments
yangruihan commented
使用 Python 内置服务器模块
命令行切换到对应目录,执行下面命令
-
Python2:
python -m SimpleHTTPServer
-
Python3
python -m http.server
此时访问127.0.0.1:8000
就会访问该目录下的index.html
,测试用非常方便
Opened this issue · 0 comments
命令行切换到对应目录,执行下面命令
Python2:
python -m SimpleHTTPServer
Python3
python -m http.server
此时访问127.0.0.1:8000
就会访问该目录下的index.html
,测试用非常方便