The Zen of Python
来源:互联网 发布:一级位面淘宝网 编辑:程序博客网 时间:2024/05/25 18:10
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! 每师出,多有名
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! 每师出,多有名
- The Zen of Python
- The Zen of Python
- The Zen of Python
- The Zen of Python
- The Zen of Python
- The Zen of Python
- The Zen of Python
- The Zen of Python
- The Zen of Python
- The Zen of Python
- The Zen of Python
- The Zen of Python
- The Zen of Python
- The Zen of Python
- The Zen of Python
- The Zen of Python
- The Zen of Python
- The Zen of Python
- Eclipse Debug挑错技巧
- UVA 11168 Airport
- 找出1000以内的所有完数。
- oracle创建触发器学习记录
- Eclipse Debug不为人知的秘密
- The Zen of Python
- 第一个服务器程序
- 内存区划分;内存分配;堆、栈概念分析;动态内存管理数据结构及程序样例;核心态与用户态
- Windows硬盘安装Ubuntu双系统及Android开发环境搭建
- light 1144 spoj 4168
- DB2中的空值和NULL值处理
- dwr防止注册用户重复,并防止表单提交
- 数组指针和指针数组
- 关于消息机制handler message looper的学习总结