nykek5i 发表于 2024-7-27 17:51:08

初始flask,搭建第1个自己的网页

<span style="color: black;"><strong style="color: blue;">咪哥杂谈</strong></span>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><img src="https://mmbiz.qpic.cn/mmbiz_png/E4ianOkSOYIaXiaqThtJf6M4ic3VpEtrZUOqLB8n4tHkib1EaV5ozamoyiaJiaCwKePAb8cR0sNry7x13zRmMvVxQmJA/640?wx_fmt=png&amp;tp=webp&amp;wxfrom=5&amp;wx_lazy=1&amp;wx_co=1" style="width: 50%; margin-bottom: 20px;"></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">本篇阅读时间约为 5 分钟。</span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">1</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"><strong style="color: blue;">前言</strong></span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">本篇依然是围绕着前面说过的<span style="color: black;">文案</span>进行知识展开,既然项目中<span style="color: black;">触及</span>到网页,咱们就从网页<span style="color: black;">起始</span>讲起吧!</span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">Python 在 9102 年<span style="color: black;">做为</span>一门热火朝天的语言,自然在建网站方面有着许多优秀的 web 框架,而笔者<span style="color: black;">这儿</span>的选型则是 flask。</span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">PS:web 框架,给新手<span style="color: black;">伴侣</span>们解释下。在生活中,<span style="color: black;">咱们</span>都大致<span style="color: black;">认识</span>过建楼的操作,建造楼房的过程中,<span style="color: black;">通常</span>都是先将其骨架搭建起来,在进行房屋细节加工。计算机中的 web 框架,就类似于骨架,<span style="color: black;">经过</span>某一框架来实现整体架构的搭建,至于房屋细节的实现,由你完成。</span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">2</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><strong style="color: blue;"><span style="color: black;">为何</span><span style="color: black;">选取</span> flask ?</strong></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">在 Python 语言中,有许多优秀的 web 框架,列举几个非常知名的:</span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><strong style="color: blue;"><span style="color: black;">1. 各框架的读音</span></strong></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><strong style="color: blue;"><span style="color: black;">Django&nbsp; &nbsp; &nbsp; &nbsp;(酱狗)</span></strong><span style="color: black;">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp; 无中文含义</span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><strong style="color: blue;"><span style="color: black;">Tornado&nbsp; &nbsp;&nbsp;&nbsp;(托内斗)&nbsp;</span></strong><span style="color: black;">&nbsp; &nbsp; &nbsp; &nbsp;中文,龙卷风</span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><strong style="color: blue;"><span style="color: black;">Web.py&nbsp; &nbsp; &nbsp; (<span style="color: black;">外边</span>点皮外)&nbsp; &nbsp;</span></strong><span style="color: black;">无中文含义</span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><strong style="color: blue;"><span style="color: black;">Flask&nbsp; </span></strong><span style="color: black;"><span style="color: black;">&nbsp; &nbsp; &nbsp;(肤蜡死磕)&nbsp; &nbsp; &nbsp;</span>中文,烧瓶</span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><strong style="color: blue;"><span style="color: black;">2. 各框架的简介</span></strong></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><strong style="color: blue;"><span style="color: black;">Django</span></strong><span style="color: black;">&nbsp; &nbsp; 市场占有率极高的框架,适合大项目,官方文档齐全</span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"><strong style="color: blue;"><span style="color: black;">Tornado</span></strong>异步高性能框架,<span style="color: black;">包括</span>许多底层细节,少而精</span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><strong style="color: blue;"><span style="color: black;">Web.py&nbsp; &nbsp;</span></strong><span style="color: black;">作者过于nb,很早被上帝请去喝茶,停止<span style="color: black;">守护</span>了</span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"><strong style="color: blue;"><span style="color: black;">Flask&nbsp; &nbsp; &nbsp; &nbsp;</span></strong>微框架,轻量级,扩展插件较多</span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">经以上对比,Django 适合大项目,Tornado 适合高<span style="color: black;">拜访</span>量项目,Web.py 之前笔者工作的时候用过,停止<span style="color: black;">守护</span>,<span style="color: black;">无</span>什么扩展组件<span style="color: black;">能够</span>利用。<span style="color: black;">针对</span>本项目而言,最合适的就<span style="color: black;">仅有</span> flask 啦!~</span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"><span style="color: black;">PS:</span><span style="color: black;">追溯到最初,Flask 诞生于 Armin Ronacher 在 2010 年愚人节开的一个玩笑。</span><span style="color: black;">后来,它<span style="color: black;">逐步</span>发展<span style="color: black;">作为</span>一个成熟的 Python Web 框架,越来越受到<span style="color: black;">研发</span>者的<span style="color: black;">喜欢</span>。</span></span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">额外普及一个 web 知识点 - <strong style="color: blue;">MVC </strong>:</span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">(<span style="color: black;">倘若</span>不是专业人员,<span style="color: black;">能够</span>忽略这个理论概念!)</span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">这是一个和 web 应用<span style="color: black;">关联</span>的模式,<span style="color: black;">不论是 java <span style="color: black;">研发</span>(java 中的 web 框架采用<span style="color: black;">便是</span>这种模式),还是 python <span style="color: black;">研发</span>。</span></span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">M:Model &nbsp;&nbsp; &nbsp; &nbsp; ==&gt;&nbsp; &nbsp; 与数据库<span style="color: black;">关联</span>的模型层</span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">V:Views &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;==&gt;&nbsp; &nbsp; 网页的<span style="color: black;">位置</span>,以及渲染网页等</span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">C:Controller &nbsp;==&gt;&nbsp; &nbsp; <span style="color: black;">拜访</span>网页<span style="color: black;">位置</span>后,读取页面数据,调用业务<span style="color: black;">规律</span></span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">3</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><strong style="color: blue;">安装 flask&nbsp;</strong></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">新的项目,需要依赖新的环境,<span style="color: black;">因此</span><span style="color: black;">运用</span> pipenv 来为新项目创建一个新环境。不<span style="color: black;">认识</span> pipenv 的,<span style="color: black;">能够</span>回顾下《<a style="color: black;">你应该<span style="color: black;">认识</span>的python虚拟环境与依赖管理</a>》。</span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">进入 https://pypi.org/ ,搜索 flask&nbsp;</span>。</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><img src="https://mmbiz.qpic.cn/mmbiz_png/E4ianOkSOYIaXiaqThtJf6M4ic3VpEtrZUODFFzewBBokBw42IcqJHBg3ibb6apuia6dDzqiaicOahPuZpSMicAMQ0TtDQ/640?wx_fmt=png&amp;tp=webp&amp;wxfrom=5&amp;wx_lazy=1&amp;wx_co=1" style="width: 50%; margin-bottom: 20px;"></p><span style="color: black;"><span style="color: black;">pip</span>list<span style="color: black;"># 查看有<span style="color: black;">无</span> pipenv</span></span><span style="color: black;"><span style="color: black;">pipenv</span> shell&nbsp;&nbsp;<span style="color: black;">#&nbsp;激活项目虚拟环境,若无则创建</span></span><span style="color: black;"><span style="color: black;">pip</span>&nbsp;install&nbsp;Flask&nbsp;&nbsp;<span style="color: black;">#&nbsp;安装 flask</span></span>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><img src="https://mmbiz.qpic.cn/mmbiz_png/E4ianOkSOYIaXiaqThtJf6M4ic3VpEtrZUOkzkkzlmzZppzIFOxkaSVdGCvn0M04N0VIbkzFBPvMibeRf7tfbPsw6Q/640?wx_fmt=png&amp;tp=webp&amp;wxfrom=5&amp;wx_lazy=1&amp;wx_co=1" style="width: 50%; margin-bottom: 20px;"></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">上面安装好 flask ,<span style="color: black;">能够</span>看到还有两个库<span style="color: black;">亦</span>被安装了。<span style="color: black;">咱们</span>打开 flask 的官方文档(<span style="color: black;">自动</span>搜索 flask 的中文文档)<span style="color: black;">瞧瞧</span>:</span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><img src="https://mmbiz.qpic.cn/mmbiz_png/E4ianOkSOYIaXiaqThtJf6M4ic3VpEtrZUO595uxBb3Z1mVibnuYZenCXowc4hXq3W5KfzPZJMUG5pOzTcFHtyviccQ/640?wx_fmt=png&amp;tp=webp&amp;wxfrom=5&amp;wx_lazy=1&amp;wx_co=1" style="width: 50%; margin-bottom: 20px;"></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">Flask 依赖 Jinja 模板引擎和 Werkzeug WSGI 套件。<span style="color: black;">因此</span>你会看到安装后多了这两个库。</span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">4</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><strong style="color: blue;"><span style="color: black;">第1</span>个 web 应用</strong></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">学习框架,<span style="color: black;">第1</span>个 demo 必然是从官网去寻找啦。<span style="color: black;">自动</span>搜索官网文档,<span style="color: black;">能够</span>看到简易 demo 。</span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><img src="https://mmbiz.qpic.cn/mmbiz_png/E4ianOkSOYIaXiaqThtJf6M4ic3VpEtrZUOlLZRlKDTpxT6eibBibCwLy8BHwSgSUNAJrXlFgwjXmE7BJKB61rkWnNg/640?wx_fmt=png&amp;tp=webp&amp;wxfrom=5&amp;wx_lazy=1&amp;wx_co=1" style="width: 50%; margin-bottom: 20px;"></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">其实官方文档写的<span style="color: black;">已然</span>很<span style="color: black;">仔细</span>了,我<span style="color: black;">这儿</span>能做的是什么呢?</span><span style="color: black;">改写 demo </span><span style="color: black;">再<span style="color: black;">来演示下。</span></span><span style="color: black;">。</span><span style="color: black;">。</span><img src="https://res.wx.qq.com/mpres/htmledition/images/icon/common/emotion_panel/smiley/smiley_20.png?tp=webp&amp;wxfrom=5&amp;wx_lazy=1&amp;wx_co=1" style="width: 50%; margin-bottom: 20px;"></p><span style="color: black;"><span style="color: black;">from</span> flask <span style="color: black;">import</span> Flask</span><span style="color: black;">app = Flask(__name__)</span><span style="color: black;"><span style="color: black;">@app.route(/)</span></span><span style="color: black;"><span style="color: black;"><span style="color: black;">def</span> <span style="color: black;">hello_world</span><span style="color: black;">()</span>:</span></span><span style="color: black;"> <span style="color: black;">return</span> <span style="color: black;">泥豪,世界!</span></span><span style="color: black;"><span style="color: black;">if</span> __name__ == <span style="color: black;">"__main__"</span>:</span><span style="color: black;"> app.run(host=<span style="color: black;">127.0.0.1</span>, port=<span style="color: black;">8080</span>)</span>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">改了成<span style="color: black;">这般</span>,<span style="color: black;">而后</span> pycharm 跑下就可以看到:</span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><img src="https://mmbiz.qpic.cn/mmbiz_png/E4ianOkSOYIaXiaqThtJf6M4ic3VpEtrZUONicANN1GCdO79ZZhQ6vNzBjfyVcvVeXIlMtETuYyiceteOtjvaETnfWA/640?wx_fmt=png&amp;tp=webp&amp;wxfrom=5&amp;wx_lazy=1&amp;wx_co=1" style="width: 50%; margin-bottom: 20px;"></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"><span style="color: black;">让<span style="color: black;">咱们</span><span style="color: black;">拜访</span>下网页<span style="color: black;">位置</span>:http://127.0.0.1:8080/</span></span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><img src="https://mmbiz.qpic.cn/mmbiz_png/E4ianOkSOYIaXiaqThtJf6M4ic3VpEtrZUOib5FMP7rYG4xrf3m8PSh81ibeB3zT96SzJyoj52LiaibeU82eZRQayr7Wg/640?wx_fmt=png&amp;tp=webp&amp;wxfrom=5&amp;wx_lazy=1&amp;wx_co=1" style="width: 50%; margin-bottom: 20px;"></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"><span style="color: black;">第1</span>个自己的网页搭建完了!是不是很简单呢。。当然,<span style="color: black;">倘若</span>是自己<span style="color: black;">研发</span>的<span style="color: black;">状况</span>下,<span style="color: black;">能够</span>加上以下 debug 参数,每次修改<span style="color: black;">不消</span>手动重启,开启后,<span style="color: black;">能够</span>观察<span style="color: black;">掌控</span>台日志。</span></p><span style="color: black;">app = Flask(__name__)</span><span style="color: black;">app.config = True<span style="color: black;"># 开启 debug</span></span>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">上面只是个小例子,你<span style="color: black;">亦</span><span style="color: black;">能够</span>这么皮一下:</p>
    <span style="color: black;"><span style="color: black;">from</span> flask <span style="color: black;">import</span> Flask</span><span style="color: black;">app = Flask(__name__)</span><span style="color: black;">app.config[<span style="color: black;">DEBUG</span>] = <span style="color: black;">True</span></span><span style="color: black;"><span style="color: black;">@app.route(/)</span></span><span style="color: black;"><span style="color: black;"><span style="color: black;">def</span> <span style="color: black;">hello_world</span><span style="color: black;">()</span>:</span></span><span style="color: black;"> <span style="color: black;">return</span> <span style="color: black;">&lt;h1&gt;泥豪,世界!&lt;/h1&gt;\</span></span><span style="color: black;"> &lt;img src="https://ss1.bdstatic.com/70cFuXSh_Q1YnxGkpoWK1HF6hhy/it/u=2700654223,2122220372&amp;fm=26&amp;gp=0.jpg"&gt; \</span><span style="color: black;">&lt;img src="https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=350647292,841711&amp;fm=27&amp;gp=0.jpg"&gt; \</span><span style="color: black;">&lt;img src="https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=4121236200,1201346551&amp;fm=27&amp;gp=0.jpg"&gt;</span><span style="color: black;"><span style="color: black;">if</span> __name__ == <span style="color: black;">"__main__"</span>:</span><span style="color: black;"> app.run(host=<span style="color: black;">127.0.0.1</span>, port=<span style="color: black;">8080</span>)</span>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><img src="https://mmbiz.qpic.cn/mmbiz_png/E4ianOkSOYIaXiaqThtJf6M4ic3VpEtrZUOpsTibfPPicTmrSiaoWdpuq8TmftQobjuDMYrXapHicWICz36Mzb2b0ib5yA/640?wx_fmt=png&amp;tp=webp&amp;wxfrom=5&amp;wx_lazy=1&amp;wx_co=1" style="width: 50%; margin-bottom: 20px;"></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"><span style="color: black;">在 return 的时候直接用 html 返回, flask 默认是支持解析的。</span></span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"><span style="color: black;">关于代码的讲解,<span style="color: black;">大众</span><span style="color: black;">自动</span>官网学习<span style="color: black;">就可</span>,不做赘述讲解,官方文档解释的很清楚了。</span></span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"><span style="color: black;">顺便在普及个知识,<span style="color: black;">倘若</span>你的<strong style="color: blue;">电脑和你的手机<span style="color: black;">处在</span>同一 wifi 下(同一局域网)</strong>。电脑上你<span style="color: black;">拜访</span>的<span style="color: black;">位置</span>是 127.0.0.1:8080 ,<span style="color: black;">那样</span>当你 web 项目<span style="color: black;">起步</span>时,手机<span style="color: black;">亦</span>是<span style="color: black;">能够</span><span style="color: black;">拜访</span>的!</span></span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">将代码 ip 位置改为:</p>
    <span style="color: black;"><span style="color: black;">if</span> __name__ == <span style="color: black;">"__main__"</span>:</span><span style="color: black;"> app.run(host=<span style="color: black;">0.0.0.0</span>, port=<span style="color: black;">8080</span>)</span>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"><span style="color: black;">查看电脑的内网 ip <span style="color: black;">位置</span>,打开 cmd (windows 快捷键是 win+r,输入 cmd <span style="color: black;">就可</span>),输入 ipconfig :</span></span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><img src="https://mmbiz.qpic.cn/mmbiz_png/E4ianOkSOYIaXiaqThtJf6M4ic3VpEtrZUOOFXIGsm4R2rahibj3pRb45rKAYo1a93GpN7NKCCVVIBMgQDgLiaSmcwg/640?wx_fmt=png&amp;tp=webp&amp;wxfrom=5&amp;wx_lazy=1&amp;wx_co=1" style="width: 50%; margin-bottom: 20px;"></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">找到,<span style="color: black;">由于</span>我<span style="color: black;">这儿</span>连接的是 wifi ,<span style="color: black;">因此</span>:</span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><img src="https://mmbiz.qpic.cn/mmbiz_png/E4ianOkSOYIaXiaqThtJf6M4ic3VpEtrZUOeN1hy6Fejlu1ed55UXCOQeO0OSmr2r0ESX5TQcDx1MnqPvqg4IVQicg/640?wx_fmt=png&amp;tp=webp&amp;wxfrom=5&amp;wx_lazy=1&amp;wx_co=1" style="width: 50%; margin-bottom: 20px;"></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"><span style="color: black;">接下来打开手机浏览器,<span style="color: black;">拜访</span> http://192.168.0.106:8080/ 。如下(小米浏览器还默认网站不安全,给了个<strong style="color: blue;">红叹号!</strong>):</span></span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><img src="https://mmbiz.qpic.cn/mmbiz_png/E4ianOkSOYIaXiaqThtJf6M4ic3VpEtrZUOxKO7cicGqM9xiaGQSCrDD6Ydg1phtjPaBW9V65xzoZcDMWt9gE4Ifwbw/640?wx_fmt=png&amp;tp=webp&amp;wxfrom=5&amp;wx_lazy=1&amp;wx_co=1" style="width: 50%; margin-bottom: 20px;"></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">5</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><strong style="color: blue;">总结</strong></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">大体上介绍了下 flask 的入门简单小 demo。后面会慢慢把 flask 一步步拓展起来,入门<span style="color: black;">文案</span>,看起来应该非常<span style="color: black;">容易</span>叭!</span></p>▼往期精彩回顾▼<a style="color: black;">从零<span style="color: black;">起始</span>,搭建城市交通数据分析(零)</a><a style="color: black;">人生<span style="color: black;">第1</span>款线上<span style="color: black;">制品</span></a><a style="color: black;">年中汇总干货<span style="color: black;">文案</span>集合(Python)</a>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><img src="https://mmbiz.qpic.cn/mmbiz_png/E4ianOkSOYIY7aqhRHa7VWe80LkbIZMSdMpvnkEegTrRgo9LJC9PBtianKV1LQ1jmoBbwrKicicMjia1mAZSoCkBUBw/640?wx_fmt=png&amp;tp=webp&amp;wxfrom=5&amp;wx_lazy=1&amp;wx_co=1" style="width: 50%; margin-bottom: 20px;"></p><img src="https://mmbiz.qpic.cn/mmbiz_png/E4ianOkSOYIYOr0GD4FpibjEhgcLFU4ib6quibNOK4TG7OPic1ic7OB6RoCOfKmiclGaias6HRhLfF1ULialyJl0GoPvDyg/640?wx_fmt=png&amp;tp=webp&amp;wxfrom=5&amp;wx_lazy=1&amp;wx_co=1" style="width: 50%; margin-bottom: 20px;">你点的<span style="color: black;">每一个</span>在看,我都认真当<span style="color: black;">成为了</span><span style="color: black;">爱好</span>


星☆雨 发表于 2024-9-7 11:17:46

请问、你好、求解、谁知道等。

u1jodi1q 发表于 2024-9-10 02:41:51

外贸论坛是我们的,责任是我们的,荣誉是我们的,成就是我们的,辉煌是我们的。

4zhvml8 发表于 2024-10-1 00:43:08

楼主节操掉了,还不快捡起来!

4zhvml8 发表于 2024-10-19 12:49:44

你的话语如春风拂面,温暖了我的心房,真的很感谢。

nykek5i 发表于 2024-11-12 09:10:19

楼主节操掉了,还不快捡起来!

j8typz 发表于 7 天前

外链论坛的成功举办,是与各位领导、同仁们的关怀和支持分不开的。在此,我谨代表公司向关心和支持论坛的各界人士表示最衷心的感谢!
页: [1]
查看完整版本: 初始flask,搭建第1个自己的网页