Python@TW: 會眾| IRC| Planet| 郵件列表| 聯絡我們
修訂版 1 和 2 的差異如下:
2007-02-23 13:35:59 修訂第 1 版
大小: 968
編輯者: timchen119
說明:
2007-02-23 13:44:40 修訂第 2 版
大小: 1107
編輯者: timchen119
說明:
這個顏色代表刪除的 這個顏色代表增加的
行號 1: 行號 1:
The Zen of Python, by Tim Peters (POT眾集體翻譯) -- 一人認領一句吧 :)   [http://www.python.org/dev/peps/pep-0020/ PEP 20 ] The Zen of Python, by Tim Peters ([:PotPeople:POT眾]集體翻譯) -- 一人認領一句吧 :)
行號 3: 行號 3:
{{{
Beautiful is better than ugly. 美優於醜。 ["timchen119"]
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!
}}}
 1. Beautiful is better than ugly.  美優於醜。 -- ["timchen119"]
 1. Explicit is better than implicit.
 1. Simple is better than complex.
 1. Complex is better than complicated.
 1. Flat is better than nested.
 1. Sparse is better than dense.
 1. Readability counts.
 1. Special cases aren't special enough to break the rules.
 1. Although practicality beats purity.   1. Errors should never pass silently.
 1. Unless explicitly silenced.
 1. In the face of ambiguity, refuse the temptation to guess.
 1. There should be one-- and preferably only one --obvious way to do it.   1. Although that way may not be obvious at first unless you're Dutch.
 1. Now is better than never.
 1. Although never is often better than *right* now.
 1. If the implementation is hard to explain, it's a bad idea.   1. If the implementation is easy to explain, it may be a good idea.
 1. Namespaces are one honking great idea -- let's do more of those!
  1. Beautiful is better than ugly. 美優於醜。 -- ["timchen119"]
  2. Explicit is better than implicit.
  3. Simple is better than complex.
  4. Complex is better than complicated.
  5. Flat is better than nested.
  6. Sparse is better than dense.
  7. Readability counts.
  8. Special cases aren't special enough to break the rules.
  9. Although practicality beats purity.
  10. Errors should never pass silently.
  11. Unless explicitly silenced.
  12. In the face of ambiguity, refuse the temptation to guess.
  13. There should be one-- and preferably only one --obvious way to do it.
  14. Although that way may not be obvious at first unless you're Dutch.
  15. Now is better than never.
  16. Although never is often better than *right* now.
  17. If the implementation is hard to explain, it's a bad idea.
  18. If the implementation is easy to explain, it may be a good idea.
  19. Namespaces are one honking great idea -- let's do more of those!

The Zen Of Python (上次是 ZoomQuiet 在 2010-04-08 09:57:40 編輯的)