Python之禪

Beautiful is better than ugly.

優美勝於醜陋less

Explicit is better than implicit.

明確勝於隱晦ide

Simple is better than complex.

簡單勝於複雜ui

Complex is better than complicated.

複雜勝於難懂idea

Flat is better than nested.

扁平勝於嵌套spa

Sparse is better than dense.

留白勝於緊湊blog

Readability counts.

可讀性很重要ci

Special cases aren't special enough to break the rules.

特例也不能特殊到能夠違背這些規則it

Although practicality beats purity.

雖然實用性勝於純粹性io

Errors should never pass silently.

錯誤不該被默默地忽略class

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.

一開始那種方式並不是顯而易見,除非你是Python之父

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!

命名空間是個絕妙的主意,咱們要多多利用它!

 

 

 

送給你們壁紙一張

相關文章
相關標籤/搜索