python之禪

>>> import this

The Zen of Python, by Tim Peters

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!

>>>


?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請結(jié)合常識與多方信息審慎甄別。
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡書系信息發(fā)布平臺,僅提供信息存儲服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

  • 前言 編程語言 Perl 曾在互聯(lián)網(wǎng)領(lǐng)域長期占據(jù)著統(tǒng)治地位,早期的大多數(shù)交互式網(wǎng)站使用的都是 Perl 腳本。那是...
    你偷了我的小魚干閱讀 507評論 0 1
  • 本文轉(zhuǎn)載自知乎 作者:季子烏 筆記版權(quán)歸筆記作者所有 其中英文語句取自:英語流利說-懂你英語 ——————————...
    Danny_Edward閱讀 44,070評論 4 38
  • The Zen of Python, by Tim Peters Beautiful is better than...
    117df14b2449閱讀 1,339評論 0 0
  • getchar():字符輸入函數(shù) 作用:從終端(或系統(tǒng)隱含指定的輸入設(shè)備)輸入一個(gè)字符。此函數(shù)沒有參數(shù) putch...
    天涯_DHY閱讀 588評論 0 0
  • 我對你付出的青春這么多年 換來了一句 謝謝你的成全 最近天天循環(huán)這首歌,劉若英的歌總是能唱進(jìn)人的心里,甜甜的聲調(diào),...
    啤酒肚豆豆閱讀 559評論 1 1

友情鏈接更多精彩內(nèi)容