成人国产在线小视频_日韩寡妇人妻调教在线播放_色成人www永久在线观看_2018国产精品久久_亚洲欧美高清在线30p_亚洲少妇综合一区_黄色在线播放国产_亚洲另类技巧小说校园_国产主播xx日韩_a级毛片在线免费

資訊專欄INFORMATION COLUMN

PEP 20 -- The Zen of Python

derek_334892 / 504人閱讀

共勉

  

Beautiful is better than ugly.
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!

彩蛋
>>> import this

文章版權(quán)歸作者所有,未經(jīng)允許請(qǐng)勿轉(zhuǎn)載,若此文章存在違規(guī)行為,您可以聯(lián)系管理員刪除。

轉(zhuǎn)載請(qǐng)注明本文地址:http://systransis.cn/yun/37455.html

相關(guān)文章

  • 學(xué)習(xí)Python,怎能不懂點(diǎn)PEP呢?

    摘要:或許你是一個(gè)初入門的小白,完全不知道是什么。到目前為止,它擁有個(gè)兄弟姐妹。此外,關(guān)于對(duì)的貢獻(xiàn),還有一種很有效的方式,就是將翻譯成中文,造福國(guó)內(nèi)的學(xué)習(xí)社區(qū)。 或許你是一個(gè)初入門Python的小白,完全不知道PEP是什么。又或許你是個(gè)學(xué)會(huì)了Python的熟手,見過幾個(gè)PEP,卻不知道這玩意背后是什么。那正好,本文將系統(tǒng)性地介紹一下PEP,與大家一起加深對(duì)PEP的了解。 目前,國(guó)內(nèi)各類教程不...

    Magicer 評(píng)論0 收藏0
  • PyCharm使用autopep8按PEP8風(fēng)格自動(dòng)排版Python代碼

    摘要:應(yīng)該提供一種,且最好只提供一種,一目了然的解決方案當(dāng)然這是沒法一蹴而就的,除非你是荷蘭人固然,立刻著手好過永遠(yuǎn)不做。簡(jiǎn)而言之就是整個(gè)項(xiàng)目周期中越早暴露的問題,其修復(fù)成本越低本文作者解釋說(shuō)這里的荷蘭人指的是的作者 前言 autopep8是一個(gè)將Python代碼自動(dòng)排版為PEP8風(fēng)格的小工具。它使用pep8工具來(lái)決定代碼中的哪部分需要被排版。autopep8可以修復(fù)大部分pep8工具中報(bào)告...

    Sanchi 評(píng)論0 收藏0

發(fā)表評(píng)論

0條評(píng)論

最新活動(dòng)
閱讀需要支付1元查看
<