1.flask前端页面文件和静态文件放在templates和static中
渲染html页面需要导入flask自带的render_template,就可以显示出html文件中的内容了。
index.html页面
游览器运行结果
Flask学习系列7.1—Flask前端页面使用
猜你喜欢
转载自blog.csdn.net/weixin_44517681/article/details/86507424
今日推荐
周排行