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!

Python的禅,由提姆彼得斯

美丽比丑陋好。

外显胜于内隐。

简单比复杂。

复杂的是比复杂的。

平比嵌套好。

稀疏比致密。

可读性计数。

特殊情况下是不够的,打破规则。

虽然实用性节拍纯度。

错误永远不会通过无声。

除非显式地沉默。

面对模糊,拒绝猜测的诱惑。

应该有一个-最好只有一个-明显的方式去做。

虽然这种方式可能不明显,除非你是荷兰人。

现在比从来没有。

虽然从来没有比现在更好。

如果实施是很难解释的,这是个坏主意。

如果实施容易解释,这可能是一个好主意。

名称空间是一个伟大的想法-让我们做更多的!

最新文章

  1. jQuery Mobile应用之火车票查询
  2. css高级
  3. get_post
  4. PHP中的变量详解
  5. Python基本概念及零碎知识点
  6. RAC 移动 OCR
  7. ssh 无密码登录
  8. 记个maven无法识别JAVA_HOME的问题 Error: JAVA_HOME is not defined correctly.
  9. Eclipse 安装使用 Maven
  10. c++ new长度为0的数组
  11. 【.NET特供-第三季】ASP.NET MVC系列:MVC与三层图形对照
  12. JAVA – 虚函数、抽象函数、抽象类、接口
  13. [学习OpenCV攻略][009][从摄像机读入数据]
  14. 1.03-get_params2
  15. 从零开始搭建FAQ引擎--深度语义匹配
  16. Dockerfile的HEALTHCHECK指令
  17. HP服务器设置iLO步凑
  18. 4.8 C++ typeid操作符
  19. 【Java】 归并排序的非递归实现
  20. mac os maverick下安装nginx+php-fpm via homebrew

热门文章

  1. http协议(八)请求首部字段
  2. 关于Xcode7.2版本访问相册问题
  3. PAT 1003. 我要通过!(20) JAVA
  4. js,onblur后下一个控件获取焦点判断、html当前活跃控件、jquery版本查看、jquery查看浏览器版本、setTimeout&setInterval
  5. 039医疗项目-模块四:采购单模块—采购单的创建-----------Dao层,service层,Acion层
  6. 微软职位内部推荐-SW Engineer II for Cloud Service
  7. C# 多重overide
  8. 深度学习(deep learning)
  9. typedef 和define的区别
  10. LINQ基础概述