Zen of python

![Uploading DSC00676_932673.JPG . . .]

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!

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

推荐阅读更多精彩内容

  • **2014真题Directions:Read the following text. Choose the be...
    又是夜半惊坐起阅读 13,487评论 0 23
  • 肚子上的赘肉很多,穿衣服的时候也不太好看,那么腹部瘦身的方法有哪些呢?减肚子的妙招有哪些呢?今天就为大家介绍几个减...
    瘦瘦才好看阅读 3,921评论 0 3
  • 第三章 长街重击 窗外汽车鸣笛的声音,将岳云从沉睡中吵醒。惺忪的睡眼似乎永远睁不开,翻了个身,抱着枕头,骑着被子,...
    有机蜗牛阅读 1,878评论 0 1
  • 生长如所有花一般盛开以太阳的颜色 日出抬头仰望日落低头沉思 时而疯狂如舞者时而抑郁如诗人 于阳光之下掩饰身份却在群...
    河岛阅读 1,891评论 2 3
  • 初秋岁难还,暮日云彩轩。 声声寒落叶,凄凄霜袭蝉。 胡天飞南燕,故土书凭传。 数滴相思泪,抱影与月眠。 ...
    城子玄阅读 1,631评论 0 0