autodataming的个人博客分享 http://blog.sciencenet.cn/u/autodataming

博文

python快速开启web服务器

已有 2444 次阅读 2018-9-4 20:58 |系统分类:科研笔记

 python -m SimpleHTTPServer 8080

python -m SimpleHTTPServer

在index.html 目录打开终端,运行上述命令即可。

然后在浏览器中 http://127.0.0.1:8000/   或者  http://localhost:8000/# 

就可以访问相应的内容了。

尤其是在学习静态网页的设计的时候,用flask就多此一举。

网页的设计的是有一定的模板的,对于非专业人士,掌握一些Bootstrap的模板,就可以实现快捷开发。


 



https://blog.sciencenet.cn/blog-950202-1132839.html

上一篇:linux 用户密码
下一篇:linux下优雅地使用python
收藏 IP: 180.160.148.*| 热度|

0

该博文允许注册用户评论 请点击登录 评论 (0 个评论)

数据加载中...

Archiver|手机版|科学网 ( 京ICP备07017567号-12 )

GMT+8, 2024-4-20 00:38

Powered by ScienceNet.cn

Copyright © 2007- 中国科学报社

返回顶部