最美情侣中文字幕电影,在线麻豆精品传媒,在线网站高清黄,久久黄色视频

歡迎光臨散文網(wǎng) 會(huì)員登陸 & 注冊(cè)

Python之禪 The Zen of Pytho

2023-03-31 17:30 作者:bili_wakaranai  | 我要投稿

by Tim Peters

?

Beautiful is better than ugly. 優(yōu)美勝于丑陋。

?

Explicit is better than implicit. 直白勝于晦澀。

?

Simple is better than complex. 簡(jiǎn)潔勝于復(fù)雜。部結(jié)構(gòu))

?

Complex is better than complicated. 復(fù)雜勝于凌亂。

?

Flat is better than nested. 扁平勝于嵌套。

?

Sparse is better than dense. 間隔勝于緊湊。

?

Readability counts. 可讀性很重要。

?

Special cases aren't special enough to break the rules. 再怎么特殊,也不能特殊到違背這些規(guī)則。

?

Although practicality beats purity. 即便如此,實(shí)用比純潔更重要。

?

Errors should never pass silently. Unless explicitly silenced. 不要放過(guò)任何錯(cuò)誤,除非你確定需要這樣做。

?

In the face of ambiguity, refuse the temptation to guess. 當(dāng)存在多種可能時(shí),不要靠猜。

?

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. 雖然這并不容易,因?yàn)槟悴皇?Python 之父(這里的 Dutch 是指 Guido )

?

Now is better than never.

Although never is often better than *right* now. 做也許好過(guò)不做,但不假思索就動(dòng)手還不如不做。

?

If the implementation is hard to explain, it's a bad idea. 如果你無(wú)法向人描述你的方案,那肯定不是一個(gè)好方案。

If the implementation is easy to explain, it may be a good idea. 如果你的方案很容易向人描述,那么有可能就是個(gè)好方案,

?

Namespaces are one honking great idea -- let's do more of those! 命名空間是一種絕妙的理念,我們應(yīng)當(dāng)多加利用。


Python之禪 The Zen of Pytho的評(píng)論 (共 條)

分享到微博請(qǐng)遵守國(guó)家法律
龙川县| 寿阳县| 绥中县| 无极县| 偏关县| 海晏县| 太谷县| 蒲江县| 大荔县| 万源市| 剑阁县| 陆丰市| 谷城县| 新泰市| 奉化市| 乾安县| 杭州市| 兴安盟| 石景山区| 富蕴县| 绥芬河市| 专栏| 晋宁县| 普兰店市| 荣昌县| 泉州市| 成安县| 黑水县| 宝丰县| 科技| 恩施市| 赤峰市| 革吉县| 永安市| 岳普湖县| 鄢陵县| 定西市| 余江县| 长岭县| 乌兰察布市| 友谊县|