The Zen of Python
The Zen of Python
人间四月 发表于2年前
The Zen of Python
  • 发表于 2年前
  • 阅读 42
  • 收藏 0
  • 点赞 1
  • 评论 0

【腾讯云】买域名送云解析+SSL证书+建站!>>>   

摘要: >>> import this
The Zen of Python, by Tim Peters
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.
可读性H。
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!
名称空间是一个很棒的想法——让我们做更多的!
  • 打赏
  • 点赞
  • 收藏
  • 分享
共有 人打赏支持
粉丝 2
博文 70
码字总数 30455
×
人间四月
如果觉得我的文章对您有用,请随意打赏。您的支持将鼓励我继续创作!
* 金额(元)
¥1 ¥5 ¥10 ¥20 其他金额
打赏人
留言
* 支付类型
微信扫码支付
打赏金额:
已支付成功
打赏金额: