1. Beautiful is better than ugly.
优美>丑陋
2. Explicit is better than implicit. Simple is better than complex. Complex is better than complicated.
明了>晦涩,简单>复杂,复杂>凌乱
3. Flat is better than nested.
扁平>嵌套
4. Special cases aren‘t special enough to break the rules. Although practicality beats purity.
虽然实用性很重要,但任何特殊情况都不足以特殊到违背上述规则。(不要为了处理某一个特殊情况,而破坏了上述任何一个规则)
5. Errors should never pass silently. Unless explicitly silenced.
不要忽视任何错误,除非有意为之
6. 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.
遇到模棱两可的地方,不要胡乱猜测。肯定会有一种,通常也是唯一一种,最明显的解决方案。虽然这种解决方案刚开始的时候并不是显而易见的。
7. Now is better than never. Although never is often better than *right* now.
现在开始做比不做好,但是不做比盲目去做好
8. 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.
如果一个方案难于表达,它一定是个坏的想法。如果一个方案易于表达,则它有可能是一个好的主意。