The Zen of Python
来源:互联网 发布:网络语al是什么意思 编辑:程序博客网 时间:2024/05/19 03:25
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.
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.douban.com/group/topic/29036169/
http://blog.csdn.net/lanphaday/article/details/2151918
- 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
- Notepad++搭建Python开发环境的一个小改进
- SQLServer存储过程收集总结
- 关于亮度,对比度以及色度调节
- hdu 149850 years, 50 colors
- Google地图之野望:你所不知道的背后故事
- The Zen of Python
- XSLT简单教程--XSLT的实例
- JavaScript 防止重复提交
- java 页面url传值中文编码&解码
- java多线程同步设计wait/notify机制
- 世界第一足球宝贝动态壁纸”原来是控制短信功能的木马!
- 简单工厂模式
- android多媒体本地播放流程video playback--base on jellybean (五)
- 严重: Exception starting filter struts2