The Zen of Python, by Tim Peters Beautiful is better than ugly.Explicit is better than implicit.Simple is better than complex.Complex is better than c ...
The Zen of Python, by Tim Peters
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!
Python的禪,由提姆彼得斯
美麗比醜陋好。
外顯勝於內隱。
簡單比複雜。
複雜的是比複雜的。
平比嵌套好。
稀疏比緻密。
可讀性計數。
特殊情況下是不夠的,打破規則。
雖然實用性節拍純度。
錯誤永遠不會通過無聲。
除非顯式地沉默。
面對模糊,拒絕猜測的誘惑。
應該有一個-最好只有一個-明顯的方式去做。
雖然這種方式可能不明顯,除非你是荷蘭人。
現在比從來沒有。
雖然從來沒有比現在更好。
如果實施是很難解釋的,這是個壞主意。
如果實施容易解釋,這可能是一個好主意。
名稱空間是一個偉大的想法-讓我們做更多的!