<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>CLI on Chen Kai Blog</title><link>https://www.chenk.top/zh/tags/cli/</link><description>Recent content in CLI on Chen Kai Blog</description><generator>Hugo</generator><language>zh-CN</language><lastBuildDate>Tue, 12 Apr 2022 09:00:00 +0000</lastBuildDate><atom:link href="https://www.chenk.top/zh/tags/cli/index.xml" rel="self" type="application/rss+xml"/><item><title>Python 工程实践（二）：项目结构 —— 从脚本到包</title><link>https://www.chenk.top/zh/python-engineering/02-project-structure/</link><pubDate>Tue, 12 Apr 2022 09:00:00 +0000</pubDate><guid>https://www.chenk.top/zh/python-engineering/02-project-structure/</guid><description>&lt;p>每个项目都始于单个文件。你写下 &lt;code>main.py&lt;/code>，它能运行；接着不断添加功能，直到某天猛然发现：这个文件已经膨胀到 1500 行，函数层层嵌套，彼此调用，而它们依赖的全局变量却定义在 800 行开外。代码虽然能跑，但没人（包括未来的你）看得懂。&lt;/p></description></item></channel></rss>