Beautiful is better than ugly.
# 優美勝于丑陋
python之禪怎么打出來。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!
# 命名空間是一種絕妙的理念,我們應當多加利用
版权声明:本站所有资料均为网友推荐收集整理而来,仅供学习和研究交流使用。
工作时间:8:00-18:00
客服电话
电子邮件
admin@qq.com
扫码二维码
获取最新动态