[Python]Zen

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!

作者:变与不变

链接:http://www.jianshu.com/p/caf8b9a41f9f

來源:简书

著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。

©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

  • **2014真题Directions:Read the following text. Choose the be...
    又是夜半惊坐起阅读 10,896评论 0 23
  • 挪威大剧作家易卜生说过:“人的第一天职是什么?答案很简单:做自己。”[玫瑰][磕头] 认清自己,把握自己的命运,实...
    Zandra梓桐阅读 145评论 0 0
  • 他们是同桌,每晚一下自习,他们一起回去,被班里同学看到,不怀好意地冲他们笑,女孩立马解释,就是碰到而已,然后顺便就...
    时光树y阅读 193评论 0 0
  • 我有一个特点就是特别喜欢活在自己的圈子里,对于圈子外的人不是说不屑一顾,只不过觉得很难融入,所以我从来不主动走入别...
    00_jianshu阅读 493评论 0 0
  • 6亲爱的自己,我想对你说,我爱你, 却说不出口, 因为我不确定,我是否真的爱你, 我不想对你说谎, 亲爱的自己,我...
    一头母狼阅读 424评论 0 4

友情链接更多精彩内容