<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Flask 从入门到进阶 &#8211; 李辉 / Grey Li</title>
	<atom:link href="https://greyli.com/tag/flask-%e4%bb%8e%e5%85%a5%e9%97%a8%e5%88%b0%e8%bf%9b%e9%98%b6/feed/" rel="self" type="application/rss+xml" />
	<link>https://greyli.com</link>
	<description>一个编程和写作爱好者的在线记事本</description>
	<lastBuildDate>Sat, 03 Jan 2026 12:59:26 +0000</lastBuildDate>
	<language>zh-CN</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.9.26</generator>

<image>
	<url>https://greyli.com/wp-content/uploads/2025/03/avatar-500-compressed-144x144.jpg</url>
	<title>Flask 从入门到进阶 &#8211; 李辉 / Grey Li</title>
	<link>https://greyli.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>《Flask 从入门到进阶》正式发售</title>
		<link>https://greyli.com/new-flask-book/</link>
		<comments>https://greyli.com/new-flask-book/#comments</comments>
		<pubDate>Sun, 23 Nov 2025 14:25:36 +0000</pubDate>
		<dc:creator><![CDATA[李辉]]></dc:creator>
				<category><![CDATA[读书与写作]]></category>
		<category><![CDATA[Flask]]></category>
		<category><![CDATA[Flask Web开发实战]]></category>
		<category><![CDATA[Flask 从入门到进阶]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[Web 开发]]></category>

		<guid isPermaLink="false">https://greyli.com/?p=5830</guid>
		<description><![CDATA[经过五年的写（拖）作（延），我的新书《Flask 从入门到进阶》终于出版了！作为《Flask Web 开发实战 [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>经过五年的写（拖）作（延），我的新书《<a href="https://helloflask.com/book/4/">Flask 从入门到进阶</a>》终于出版了！作为《<a href="https://helloflask.com/book/1/">Flask Web 开发实战</a>》的全新升级版，新版本在原书的基础上进行了大量更新和调整，以便适应当下的技术栈。目前已经有现货可以购买：</p>
<ul>
<li><a href="https://item.jd.com/10197448824391.html">京东</a></li>
<li><a href="https://product.dangdang.com/12441003237.html">当当</a></li>
<li><a href="https://helloflask.com/book/4/signed/">作者签名版</a></li>
</ul>
<p>至此我在 Flask 这条人生支线的探索也算圆满了。我从大二自学 Python 和 Flask，毕业前开始写作《Flask Web 开发实战》，这本书出版的同时也成为了 Flask 的维护者，并且为大量相关项目贡献代码。从</span> 2018 年出版到现在，一共重印了 14 次，累计售出 2 万本（包括电子书）。收获了很多好评，在<a href="https://book.douban.com/subject/30310340/">豆瓣</a>上评分也保持在 9 分左右：</p>
<p><a href="https://greyli.com/wp-content/uploads/2025/11/flask-book-douban-page.png"><img class="aligncenter size-large wp-image-5834" src="https://greyli.com/wp-content/uploads/2025/11/flask-book-douban-page-1024x392.png" alt="" width="625" height="239" srcset="https://greyli.com/wp-content/uploads/2025/11/flask-book-douban-page-1024x392.png 1024w, https://greyli.com/wp-content/uploads/2025/11/flask-book-douban-page-150x57.png 150w, https://greyli.com/wp-content/uploads/2025/11/flask-book-douban-page-300x115.png 300w, https://greyli.com/wp-content/uploads/2025/11/flask-book-douban-page-624x239.png 624w, https://greyli.com/wp-content/uploads/2025/11/flask-book-douban-page.png 1364w" sizes="(max-width: 625px) 100vw, 625px" /></a></p>
<p>到现在终于完成了新版本，而且还拿到了 Armin Ronacher（Flask 作者）的推荐语：</p>
<blockquote>
<p>Great resources make great developers, and it’s wonderful to see Flask supported by such high-quality education materials.</p>
</blockquote>
<p>感谢一直关注这本书并持续催更的朋友！这本书的完成是我们共同努力的结果 :D</p>
<p><a href="https://greyli.com/wp-content/uploads/2025/11/new-flaskbook.jpg"><img class="aligncenter wp-image-5843 " src="https://greyli.com/wp-content/uploads/2025/11/new-flaskbook-768x1024.jpg" alt="" width="409" height="545" srcset="https://greyli.com/wp-content/uploads/2025/11/new-flaskbook-768x1024.jpg 768w, https://greyli.com/wp-content/uploads/2025/11/new-flaskbook-113x150.jpg 113w, https://greyli.com/wp-content/uploads/2025/11/new-flaskbook-225x300.jpg 225w, https://greyli.com/wp-content/uploads/2025/11/new-flaskbook-624x832.jpg 624w" sizes="(max-width: 409px) 100vw, 409px" /></a></p>
<h2>本书主要特色</h2>
<p>这本书换了一个新书名，出于<a href="https://greyli.com/flask-book-2025-signed/#new-name">一个有点滑稽的原因</a>。书名从《Flask Web 开发实战：入门、进阶与原理解析》变成了《Flask 从入门到进阶：Python Web 开发工程化实践》。不过新的副书名也能更好的概括这本书的特点：以学习 Flask Web 开发作为脉络，你能通过这本书掌握相对完整的 Python Web 工程化实践。从 HTTP 原理到数据库 ORM，从单元测试到代码风格再到性能优化，从 Web 程序开发到 Web API 开发，最后再到不同的部署方式。如果想要深入了解框架，最后还有一章源码解析。同时用两个示例程序串起来各种不同的知识点，比如 Flask 项目的组织方式和技巧，以及 Flask 开发中各类功能的实现。</p>
<p>访问这本书的主页查看详细介绍和章节目录：<a href="https://helloflask.com/book/4/">https://helloflask.com/book/4/</a></p>
<h2>新版本主要变化</h2>
<p>下面是一些具体内容上的变化：</p>
<h3>版本升级</h3>
<table>
<thead>
<tr>
<th>旧版本</th>
<th>新版本</th>
</tr>
</thead>
<tbody>
<tr>
<td>Flask 1.x</td>
<td>Flask 3.x</td>
</tr>
<tr>
<td>Python 2.7, 3.6+</td>
<td>Python 3.9+</td>
</tr>
<tr>
<td>Bootstrap 4.x</td>
<td>Bootstrap 5.x</td>
</tr>
<tr>
<td>SQLAlchemy 1.x</td>
<td>SQLAlchemy 2.x</td>
</tr>
</tbody>
</table>
<h3>技术栈更新</h3>
<table>
<thead>
<tr>
<th>旧版本</th>
<th>新版本</th>
</tr>
</thead>
<tbody>
<tr>
<td>Pipenv</td>
<td>PDM</td>
</tr>
<tr>
<td>Flask-Mail</td>
<td>Flask-Mailman</td>
</tr>
<tr>
<td>Flake8</td>
<td>Ruff</td>
</tr>
<tr>
<td>Open Iconic</td>
<td>Bootstrap Icon</td>
</tr>
<tr>
<td>Flask-Moment + Moment.js</td>
<td>Day.js</td>
</tr>
<tr>
<td>jQuery</td>
<td>Vanilla JS</td>
</tr>
<tr>
<td>AJAX with jQuery</td>
<td>Fetch API</td>
</tr>
<tr>
<td>Flask for Web API</td>
<td>APIFlask</td>
</tr>
<tr>
<td>云平台部署</td>
<td>Docker 部署</td>
</tr>
</tbody>
</table>
<p>示例程序上做了比较大的调整，删掉了旧版本的 <a href="https://github.com/greyli/sayhello">SayHello</a>、<a href="https://github.com/greyli/todoism">Todoism</a>、<a href="https://github.com/greyli/catchat">CatChat</a>，保留两个程序并做了比较大的重构：</p>
<table>
<thead>
<tr>
<th>旧版本</th>
<th>新版本</th>
</tr>
</thead>
<tbody>
<tr>
<td>Bluelog</td>
<td><a href="https://github.com/greyli/greybook" target="_blank" rel="noopener">Greybook</a></td>
</tr>
<tr>
<td>Albumy</td>
<td><a href="https://github.com/greyli/moments" target="_blank" rel="noopener">Moments</a></td>
</tr>
<tr>
<td>helloflask/demos</td>
<td><a href="https://github.com/greyli/helloflask/tree/main/examples" target="_blank" rel="noopener">helloflask/examples</a></td>
</tr>
</tbody>
</table>
<p>新版本计划是想做一些删减，比如从 700 页减到 500 页，毕竟一本厚书还是让人蛮有压力的。虽然删掉了两个章节，但是写到最后又快到了 700 页，实际的厚度比旧版本还要厚一点点。大概不知不觉又加了很多内容进来。</p>
<h2>面向的读者群</h2>
<p>本书面向的读者群如下：</p>
<ul>
<li>了解 Python 基本语法，想要自己动手开发网站的编程爱好者</li>
<li>熟悉 Python，想要从事 Python Web 开发的后端工程师、运维工程师和爬虫工程师</li>
<li>想要从 Django 等其他 Python Web 框架转向 Flask 的 Python 工程师</li>
</ul>
<p>本书不包含对 Python 的基础知识介绍，所以读者需要事先对 Python 基本语法有一定的了解。另外，Web 开发不可避免的会涉及到一些 HTML、CSS 和 JavaScript 知识，如果你不熟悉这些，可以通过 MDN 提供的 <a href="https://developer.mozilla.org/zh-CN/docs/learn" target="_blank" rel="noopener">Web 开发入门教程</a>学习，简单了解即可。</p>
<h2>推荐语</h2>
<blockquote>
<p>Great resources make great developers, and it’s wonderful to see Flask supported by such high-quality education materials.</p>
<p>—— <a href="https://lucumr.pocoo.org/about/">Armin Ronacher</a>（Flask 作者，Sentry Platform 副总裁）</p>
<p>作为一名对 Python 充满热忱的软件工程师，一名乐于帮助他人、回馈社区的布道者，Grey 对技术准确性、阅读体验感的无限追求都体现在这本新作中，我相信每一名读者都能在字里行间感受到他的诚意。</p>
<p>—— 管俊（《DevOps 实践指南（第 2 版）》译者，戴尔中国卓越研发集团 DevOps 架构师）</p>
<p>这本书内容翔实，推荐给想要系统学习 Flask 的人。不要漏掉书中的小知识点哦。</p>
<p>—— <a href="http://lepture.com/">Hsiaoming Yang</a>（Typlog 创始人，Authlib 作者）</p>
</blockquote>
<h2>关于作者</h2>
<p class="">我是李辉（Grey Li），Flask &amp; APIFlask 的维护者，Flask 开发团队（<a href="https://palletsprojects.com/people" target="_blank" rel="noopener">Pallets Team</a>）成员， HelloFlask 社区和代码厨房社区创建者，微软 Python 方向最有价值专家（MVP）。目前就职于戴尔中国卓越研发集团，担任首席软件工程师。</p>
<p>我热衷于开源软件的应用和推广，为 Flask 等开源项目贡献过大量代码。也曾在 PyCon China、PyCon US、COSCUP、COSCon、CommunityOverCode 等技术大会担任演讲嘉宾。你可以在 <a href="https://github.com/greyli" target="_blank" rel="noopener">GitHub</a> 上看到我的开源项目。</p>
<p>如果你想了解我的新作品或其他动态，可以关注我的 <a href="https://twitter.com/greylihui" target="_blank" rel="noopener">Twitter</a> 和<a href="https://greyli.com/files/qrcode_gh.jpg" target="_blank" rel="noopener">微信公众号</a>，或是加入我的<a href="https://greyli.com/newsletter" target="_blank" rel="noopener">邮件通讯列表</a>。</p>
<h2>勘误、分享和评价</h2>
<p>在阅读过程中如果发现了排版或内容上的错误，欢迎通过下面的方式提交勘误。我会在后续重印时进行修正。感谢反馈！</p>
<ul>
<li>提交 <a href="https://github.com/greyli/helloflask/issues/new/choose">GitHub issue</a></li>
<li>在<a href="https://codekitchen.community/t/topic/837">勘误收集帖</a>留言</li>
</ul>
<p>如果你觉得这本书还不错，欢迎分享到社交网络，或是告诉你的同事和朋友。也欢迎在<a href="https://book.douban.com/subject/37668215/">本书的豆瓣页面</a>标记和评价。</p>
]]></content:encoded>
			<wfw:commentRss>https://greyli.com/new-flask-book/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>《Flask 从入门到进阶》签名版预售</title>
		<link>https://greyli.com/flask-book-2025-signed/</link>
		<comments>https://greyli.com/flask-book-2025-signed/#comments</comments>
		<pubDate>Fri, 17 Oct 2025 10:58:36 +0000</pubDate>
		<dc:creator><![CDATA[李辉]]></dc:creator>
				<category><![CDATA[计算机与编程]]></category>
		<category><![CDATA[Flask]]></category>
		<category><![CDATA[Flask Web开发实战]]></category>
		<category><![CDATA[Flask 从入门到进阶]]></category>

		<guid isPermaLink="false">https://greyli.com/?p=5742</guid>
		<description><![CDATA[五年了，终于等到这一天。《Flask Web 开发实战》的全新升级版《Flask 从入门到进阶：Python  [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>五年了，终于等到这一天。《Flask Web 开发实战》的全新升级版《<a href="https://helloflask.com/book/4/">Flask 从入门到进阶：Python Web 开发工程化实践</a>》将于下个月正式发售。和上一版一样，先来预售作者签名版。</p>
<h2>签名版</h2>
<p>签名版的价格和上一版保持一致，依然是 109。付款方式和详细说明可以访问预售页面查看：</p>
<p><a href="https://helloflask.com/book/4/signed/">https://helloflask.com/book/4/signed/</a></p>
<p>签名版除了送 2 张 Flask 贴纸，还会额外送一张我的名片，可以用来当书签或者飞着玩。具体发货时间取决于正式发售时间，虽然不能完全保证，但我会尽量让签名书第一批发出。</p>
<h2 id="new-name">新书名</h2>
<p>你也许好奇为什么要换一个新书名，而不是作为第 2 版出版，即《Flask Web 开发实战（第 2 版）》。我设想了一些合理解释：因为内容变动比较多，换个更贴切的书名；在副书名里加一个 Python 关键字，更容易被别人搜索到……但背后实际的乌龙是：管理书号的工作人员在录入系统时打错了名字，把《Flask Web 开发实战》写成了《Flash Web 开发实战》。</p>
<p>按照出版规定，如果我想作为原书第 2 版来出版，那么新书名就只能叫《Flash Web 开发实战（第 2 版）》了。诸位应该也不想学 Flash Web 吧？</p>
<p><a href="https://greyli.com/wp-content/uploads/2025/10/flask-book-signed-poster.jpg"><img class="aligncenter size-large wp-image-5743" src="https://greyli.com/wp-content/uploads/2025/10/flask-book-signed-poster-1024x1024.jpg" alt="" width="625" height="625" srcset="https://greyli.com/wp-content/uploads/2025/10/flask-book-signed-poster-1024x1024.jpg 1024w, https://greyli.com/wp-content/uploads/2025/10/flask-book-signed-poster-150x150.jpg 150w, https://greyli.com/wp-content/uploads/2025/10/flask-book-signed-poster-300x300.jpg 300w, https://greyli.com/wp-content/uploads/2025/10/flask-book-signed-poster-144x144.jpg 144w, https://greyli.com/wp-content/uploads/2025/10/flask-book-signed-poster-624x624.jpg 624w, https://greyli.com/wp-content/uploads/2025/10/flask-book-signed-poster.jpg 1600w" sizes="(max-width: 625px) 100vw, 625px" /></a></p>
]]></content:encoded>
			<wfw:commentRss>https://greyli.com/flask-book-2025-signed/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
