The Zen of Python

The Zen of 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.

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!

图片发自简书App
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • rljs by sennchi Timeline of History Part One The Cognitiv...
    sennchi阅读 7,490评论 0 10
  • **2014真题Directions:Read the following text. Choose the be...
    又是夜半惊坐起阅读 10,110评论 0 23
  • 你是不是觉得很多流行语都能打到你的痛点,让你心有戚戚焉?比如:“生活不止眼前的苟且,还有诗和远方。” “听过很多道...
    知其阅读 3,541评论 31 118
  • 小时候 幸福就是一块糖果 也是隔壁小朋友手里的玩具 上学后 幸福就是作业本上红色的勾 也是隔壁班姑娘害羞的一个微笑...
    刘里墨阅读 377评论 5 3
  • 情爱番然已来临,秋夜星朗正迷人。 此时芳心静如水,可提弯月去相亲。
    老槐树阅读 205评论 0 1