<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="zh">
	<id>https://arolstar52-zhtest.hf.space/index.php?action=history&amp;feed=atom&amp;title=Python%E4%B9%8B%E7%A6%85</id>
	<title>Python之禅 - 版本历史</title>
	<link rel="self" type="application/atom+xml" href="https://arolstar52-zhtest.hf.space/index.php?action=history&amp;feed=atom&amp;title=Python%E4%B9%8B%E7%A6%85"/>
	<link rel="alternate" type="text/html" href="https://arolstar52-zhtest.hf.space/index.php?title=Python%E4%B9%8B%E7%A6%85&amp;action=history"/>
	<updated>2026-07-15T19:17:00Z</updated>
	<subtitle>在这个wiki上该页的修订历史</subtitle>
	<generator>MediaWiki 1.43.9</generator>
	<entry>
		<id>https://arolstar52-zhtest.hf.space/index.php?title=Python%E4%B9%8B%E7%A6%85&amp;diff=3192947&amp;oldid=prev</id>
		<title>imported&gt;DoroWolf 来自 2023年6月7日 (三) 09:58</title>
		<link rel="alternate" type="text/html" href="https://arolstar52-zhtest.hf.space/index.php?title=Python%E4%B9%8B%E7%A6%85&amp;diff=3192947&amp;oldid=prev"/>
		<updated>2023-06-07T09:58:44Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新页面&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;Python之禅&amp;#039;&amp;#039;&amp;#039;最早由 Tim Peters&amp;lt;ref&amp;gt;{{Cite web|url=https://mail.python.org/pipermail/python-list/1999-June/001951.html|title=&amp;quot;The Python Way&amp;quot;|publisher=Mail.python.org|date=|accessdate=2018-12-27|archive-date=2019-02-12|archive-url=https://web.archive.org/web/20190212195644/https://mail.python.org/pipermail/python-list/1999-June/001951.html|dead-url=no}}&amp;lt;/ref&amp;gt;&amp;lt;ref&amp;gt;{{Cite web|url=https://wefearchange.org/2010/06/import-this-and-zen-of-python.html|title=We Fear Change|work=wefearchange.org|accessdate=2019-02-26|archive-date=2019-03-27|archive-url=https://web.archive.org/web/20190327101242/https://wefearchange.org/2010/06/import-this-and-zen-of-python.html|dead-url=no}}&amp;lt;/ref&amp;gt;在Python邮件列表中发表，它包含了影响[[Python|Python编程语言]]&amp;lt;ref name=&amp;quot;hitchhiker&amp;quot;&amp;gt;{{Cite web|url=http://docs.python-guide.org/en/latest/writing/style/#zen-of-python|title=Code Style|work=The Hitchhiker’s Guide to Python|date=2015-11-18|accessdate=2019-02-26|archive-date=2018-12-26|archive-url=https://web.archive.org/web/20181226141126/https://docs.python-guide.org/writing/style/#zen-of-python|dead-url=no}}&amp;lt;/ref&amp;gt;设计的19条软件编写原则。在最初及后来的一些版本中，一共包含20条，其中第20条是「这一条留空（...）请 [[吉多·范罗苏姆|Guido]] 来填写」。这留空的一条从未公布也可能并不存在。这些文本属于[[公有领域|公共领域]]&amp;lt;ref name=&amp;quot;pep20&amp;quot;&amp;gt;{{Cite web|url=https://www.python.org/dev/peps/pep-0020/|title=PEP20 -- The Zen of Python|author=Tim Peters|date=2015-11-18|accessdate=2019-02-26|archive-date=2018-12-26|archive-url=https://web.archive.org/web/20181226141127/https://www.python.org/dev/peps/pep-0020/|dead-url=no}}&amp;lt;/ref&amp;gt;。&lt;br /&gt;
&lt;br /&gt;
Python之禅作为一个信息条款被录入Python增强建议（PEP）的第20条，在Python语言的官方网站也能找到。它还作为复活节彩蛋被包含在Python[[直譯器|解释器]]中。如果输入 &amp;lt;syntaxhighlight lang=&amp;quot;python&amp;quot; inline&amp;gt;import this&amp;lt;/syntaxhighlight&amp;gt; 就会在Python的编程环境IDLE中显示&amp;lt;ref name=&amp;quot;hitchhiker&amp;quot; /&amp;gt;。&lt;br /&gt;
&lt;br /&gt;
== Python之禅的内容 ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
优美优于丑陋，&lt;br /&gt;
&lt;br /&gt;
明瞭优于隐晦；&lt;br /&gt;
&lt;br /&gt;
简单优于复杂，&lt;br /&gt;
&lt;br /&gt;
复杂优于繁雜，&lt;br /&gt;
&lt;br /&gt;
扁平优于嵌套，&lt;br /&gt;
&lt;br /&gt;
稀疏优于稠密，&lt;br /&gt;
&lt;br /&gt;
可读性很重要！&lt;br /&gt;
&lt;br /&gt;
特例亦不可违背原则，&lt;br /&gt;
&lt;br /&gt;
即使实用比纯粹更优。&lt;br /&gt;
&lt;br /&gt;
错误绝不能悄悄忽略，&lt;br /&gt;
&lt;br /&gt;
除非它明确需要如此。&lt;br /&gt;
&lt;br /&gt;
面对不确定性，&lt;br /&gt;
&lt;br /&gt;
拒绝妄加猜测。&lt;br /&gt;
&lt;br /&gt;
任何问题应有一种，&lt;br /&gt;
&lt;br /&gt;
且最好只有一种，&lt;br /&gt;
&lt;br /&gt;
显而易见的解决方法。&lt;br /&gt;
&lt;br /&gt;
尽管这方法一开始并非如此直观，&lt;br /&gt;
&lt;br /&gt;
除非你是荷兰人。&lt;br /&gt;
&lt;br /&gt;
做优于不做，&lt;br /&gt;
&lt;br /&gt;
然而不假思索还不如不做。&lt;br /&gt;
&lt;br /&gt;
很难解释的，必然是坏方法。&lt;br /&gt;
&lt;br /&gt;
很好解释的，可能是好方法。&lt;br /&gt;
&lt;br /&gt;
命名空间是个绝妙的主意，&lt;br /&gt;
&lt;br /&gt;
我们应好好利用它。&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==参见==&lt;br /&gt;
*Perl的[[不止一种方法去做一件事]]&lt;br /&gt;
&lt;br /&gt;
== 参考文献 ==&lt;br /&gt;
{{reflist|2}}&lt;br /&gt;
&lt;br /&gt;
== 外部链接 ==&lt;br /&gt;
&lt;br /&gt;
* [https://www.python.org/dev/peps/pep-0020/ PEP20 Python网站]{{Wayback|url=https://www.python.org/dev/peps/pep-0020/ |date=20181226141127 }}&lt;br /&gt;
[[Category:Python]]&lt;br /&gt;
[[Category:编程原则]]&lt;/div&gt;</summary>
		<author><name>imported&gt;DoroWolf</name></author>
	</entry>
</feed>