|
python -m SimpleHTTPServer 8080
python -m SimpleHTTPServer
在index.html 目录打开终端,运行上述命令即可。
然后在浏览器中 http://127.0.0.1:8000/ 或者 http://localhost:8000/#
就可以访问相应的内容了。
尤其是在学习静态网页的设计的时候,用flask就多此一举。
网页的设计的是有一定的模板的,对于非专业人士,掌握一些Bootstrap的模板,就可以实现快捷开发。
Archiver|手机版|科学网 ( 京ICP备07017567号-12 )
GMT+8, 2024-9-25 23:35
Powered by ScienceNet.cn
Copyright © 2007- 中国科学报社