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

歡迎光臨散文網(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ó)家法律
淅川县| 金溪县| 双峰县| 宕昌县| 新竹市| 常宁市| 喀喇| 馆陶县| 通化市| 凉山| 张掖市| 新源县| 渭南市| 塘沽区| 河北区| 荃湾区| 广东省| 左云县| 肥西县| 霍林郭勒市| 泾川县| 区。| 松溪县| 辉南县| 新营市| 伊川县| 武安市| 舟山市| 济源市| 临汾市| 沙雅县| 黄石市| 伽师县| 仙游县| 龙山县| 思南县| 乌拉特中旗| 建昌县| 宜城市| 昭苏县| 罗田县|