We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
命令行切换到对应目录,执行下面命令
Python2:
python -m SimpleHTTPServer
Python3
python -m http.server
此时访问127.0.0.1:8000就会访问该目录下的index.html,测试用非常方便
127.0.0.1:8000
index.html
The text was updated successfully, but these errors were encountered:
No branches or pull requests
使用 Python 内置服务器模块
命令行切换到对应目录,执行下面命令
Python2:
Python3
此时访问
127.0.0.1:8000
就会访问该目录下的index.html
,测试用非常方便The text was updated successfully, but these errors were encountered: