limodou 前辈的译文好棒~~~
蠎 禅
The Zen of Python
优美胜过丑陋
Beautiful is better than ugly.
明确胜过含蓄
Explicit is better than implicit.
简单胜过复杂
Simple is better than complex.
复杂胜过难懂
Complex is better than complicated.
扁平胜过嵌套
Flat is better than nested.
稀疏胜过密集
Sparse is better than dense.
易读亦有价
Readability counts.
尽管实用会击败纯洁
Special cases aren't special enough to break the rules.
特例也不能特殊到打破规则
Although practicality beats purity.
除非明确地使其沉默
Errors should never pass silently.
错误永远不应默默地溜掉
Unless explicitly silenced.
面对着不确定,要拒绝猜测的诱惑 In
the face of ambiguity, refuse the temptation to guess.
应该有一个--宁肯只有一个--明显的实现方法 There
should be one-- and preferably only one --obvious way to do it.
也许这个方法开始不是很明显,除非你是荷兰人 Although that
way may not be obvious at first unless you're Dutch.
尽管不做通常好过立刻做
Now is better than never.
但现在做也要胜过不去做
Although never is often better than *right* now.
如果实现很难解释,那它就是一个坏想法 If the
implementation is hard to explain, it's a bad idea.
如果实现容易解释,那它可能就是一个好想法 If the
implementation is easy to explain, it may be a good idea.
名字空间是一个响亮的出色想法--就让我们多用用它们 Namespaces are one
honking great idea
--大家一起来实践这些规则吧!
-- let's do more of those!
-- Tim Peters
-- by Tim Peters
-- 译:limodou