共勉
彩蛋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
文章版權歸作者所有,未經允許請勿轉載,若此文章存在違規行為,您可以聯系管理員刪除。
轉載請注明本文地址:http://specialneedsforspecialkids.com/yun/37455.html
摘要:或許你是一個初入門的小白,完全不知道是什么。到目前為止,它擁有個兄弟姐妹。此外,關于對的貢獻,還有一種很有效的方式,就是將翻譯成中文,造福國內的學習社區。 或許你是一個初入門Python的小白,完全不知道PEP是什么。又或許你是個學會了Python的熟手,見過幾個PEP,卻不知道這玩意背后是什么。那正好,本文將系統性地介紹一下PEP,與大家一起加深對PEP的了解。 目前,國內各類教程不...
摘要:應該提供一種,且最好只提供一種,一目了然的解決方案當然這是沒法一蹴而就的,除非你是荷蘭人固然,立刻著手好過永遠不做。簡而言之就是整個項目周期中越早暴露的問題,其修復成本越低本文作者解釋說這里的荷蘭人指的是的作者 前言 autopep8是一個將Python代碼自動排版為PEP8風格的小工具。它使用pep8工具來決定代碼中的哪部分需要被排版。autopep8可以修復大部分pep8工具中報告...
閱讀 2413·2021-08-18 10:21
閱讀 2519·2019-08-30 13:45
閱讀 2155·2019-08-30 13:16
閱讀 2100·2019-08-30 12:52
閱讀 1363·2019-08-30 11:20
閱讀 2622·2019-08-29 13:47
閱讀 1622·2019-08-29 11:22
閱讀 2760·2019-08-26 12:11