前言全局说明
python 提供的web服务
一、运行一个HTTP服务器
python3 -m http.server 8000
python2 -m SimpleHTTPServer
网页启动路径,就是当前执行命令路径
二、运行 Flask 服务
使用python 自带的web服务器
python3 index.py runserver 0.0.0.0:5000
或
python3 index.py runserver
代码里指定 IP和端口,启动时就不用再指定了
免责声明:本号所涉及内容仅供安全研究与教学使用,如出现其他风险,后果自负。
参考、来源:
https://www.cnblogs.com/wutou/p/15857551.html