Chinaunix首页 | 论坛 | 博客
  • 博客访问: 4997190
  • 博文数量: 921
  • 博客积分: 16037
  • 博客等级: 上将
  • 技术积分: 8469
  • 用 户 组: 普通用户
  • 注册时间: 2006-04-05 02:08
文章分类

全部博文(921)

文章存档

2020年(1)

2019年(3)

2018年(3)

2017年(6)

2016年(47)

2015年(72)

2014年(25)

2013年(72)

2012年(125)

2011年(182)

2010年(42)

2009年(14)

2008年(85)

2007年(89)

2006年(155)

分类: Python/Ruby

2011-07-28 11:15:20

  1. import this
  2. >>>
  3. The Zen of Python, by Tim Peters
  4.   
  5. Beautiful is better than ugly.
  6. 漂亮的代码要比丑陋的代码要好得多。
  7. Explicit is better than implicit.
  8. 明确的定义比 隐式定义更好。
  9. Simple is better than complex.
  10. 简单比负责要好。
  11. Complex is better than complicated.
  12. 负责要比搞复杂要好。
  13. Flat is better than nested.
  14. 扁平结构要比嵌套结构好。
  15. Sparse is better than dense.
  16. 简洁明了的代码要比稠密的代码要好。
  17. Readability counts.
  18. 可读写的计数。
  19. Special cases aren't special enough to break the rules.
  20. 专门的用例不是特殊到足以违反规则。
  21. Although practicality beats purity.
  22. 是的,实用性练就纯度。
  23. Errors should never pass silently.
  24. 错误永远都不会沉默。
  25. Unless explicitly silenced.
  26. 除非明确啥也不干。
  27. In the face of ambiguity, refuse the temptation to guess.
  28. 面对模糊定义、拒绝视图拍脑袋猜。
  29. There should be one-- and preferably only one --obvious way to do it.
  30. Although that way may not be obvious at first unless you're Dutch.
  31. 虽然一开始不那面明确,我们会选择更清晰一条到走。
  32. Now is better than never.
  33. 现在开始总比不开始的要好。
  34. Although never is often better than *right* now.
  35. 虽然从不尝试总比现在开始尝试好。
  36. If the implementation is hard to explain, it's a bad idea.
  37. 如果实现难以说明,那它是个坏主意。
  38. If the implementation is easy to explain, it may be a good idea.
  39. 如果实现容易说明,那它是个好主意。
  40. Namespaces are one honking great idea -- let's do more of
阅读(1016) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~