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.雖然這種 方式可能不容易,除非你是python之父
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! 命名空間是一種絕妙的理念,應當多加利用
這就是 Python 之禪,Guido van Rossum一定是個有趣的人,能將設計思想展現在python解釋器中,在“hello world”程序開始之前,它還有一番人生哲學啊
一圖解讀Python設計哲學