欧美一区二区三区,国内熟女精品熟女A片视频小说,日本av网,小鲜肉男男GAY做受XXX网站

什么代碼風(fēng)格算是python風(fēng)格

什么代碼風(fēng)格算是python風(fēng)格?

做為一個(gè)程序員,要做到碼如其人,人碼合一。

堅(jiān)持python之禪,生活快樂(lè)無(wú)邊!

The Zen of Python, by Tim Peters

Beautiful is better than ugly.美優(yōu)于丑;Explicit is better than implicit.清楚優(yōu)于隱晦;Simple is better than complex.簡(jiǎn)優(yōu)于繁;Complex is better than complicated.繁優(yōu)于亂;Flat is better than nested.直優(yōu)于曲;Sparse is better than dense.松優(yōu)于密;Readability counts.可讀性第一;Special cases aren’t special enough to break the rules.情況再特殊,也不要破壞規(guī)則;Although practicality beats purity.盡管實(shí)踐可以打破真理;Errors should never pass silently.錯(cuò)誤卻不可置之不理;Unless explicitly silenced.除非另有明確要求;In the face of ambiguity, refuse the temptation to guess.面對(duì)模棱兩可,請(qǐng)不要輕易猜測(cè);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.哪怕這個(gè)方法在開(kāi)始的時(shí)候可能并不明顯 —除非你是python老爹本人;Now is better than never.有個(gè)粗糙的實(shí)現(xiàn)總比沒(méi)有好;Although never is often better than *right* now.盡管現(xiàn)有的它并不完美;If the implementation is hard to explain, it’s a bad idea.如果代碼很難懂,那么一定是寫(xiě)得不夠好;If the implementation is easy to explain, it may be a good idea.好的解決方案永遠(yuǎn)是一看就懂的;Namespaces are one honking great idea — let’s do more of those!命名空間是個(gè)好玩意,能多用就多用吧,別控制!

java nested,什么代碼風(fēng)格算是python風(fēng)格