Python-0001

原文

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!


全文专业翻译

《Python 之禅》—— Tim Peters 著

优美胜于丑陋。
显式胜于隐式。
简洁胜于复杂。
复杂胜于繁复。
扁平胜于嵌套。
稀疏胜于密集。
可读性至关重要。
特例并不足以破坏规则。
然而,实用性胜过纯粹性。
错误绝不可静默通过。
除非被明确静音。
面对歧义,拒绝猜测的诱惑。
应存在一种——且最好仅有一种——显而易见的实现方式。
尽管这种方式起初未必显而易见,除非你是荷兰人。
现在动手胜过永远不动。
然而,永远不动通常又优于仓促行事。
若某项实现难以解释,则其构想欠佳。
若某项实现易于解释,则其可能是个好主意。
命名空间是个绝妙的构想——让我们多多采用!


词汇表梳理

本次共收获单词:38 个(已排除 4 个重复单词:silently、explicitly、refuse、more)

序号 单词 词性 音标 拼读 释义
1 beautiful 形容词 /ˈbjuːtɪfl/ beau·ti·ful | 比尤-提-佛 优美的;美观的
2 ugly 形容词 /ˈʌɡli/ ug·ly | 阿格-利 丑陋的;难看的
3 explicit 形容词 /ɪkˈsplɪsɪt/ ex·pli·cit | 依克-斯普里-西特 显式的;明确的
4 implicit 形容词 /ɪmˈplɪsɪt/ im·pli·cit | 因-普里-西特 隐式的;含蓄的
5 complex 形容词 /kəmˈpleks/ com·plex | 康-普莱克斯 复杂的;复合的
6 complicated 形容词 /ˈkɒmplɪkeɪtɪd/ com·pli·ca·ted | 康-普利-凯-提德 繁复的;难懂的
7 flat 形容词 /flæt/ flat | 弗莱特 扁平的;平面的
8 nested 形容词 /ˈnestɪd/ nest·ed | 内斯-提德 嵌套的
9 sparse 形容词 /spɑːs/ sparse | 斯帕斯 稀疏的;稀少的
10 dense 形容词 /dens/ dense | 登斯 密集的;稠密的
11 readability 名词 /ˌriːdəˈbɪləti/ read·a·bil·i·ty | 瑞-德-比-利-提 可读性
12 special 形容词 /ˈspeʃl/ spe·cial | 斯派-肖 特殊的;特别的
13 case 名词 /keɪs/ case | 凯斯 情况;用例;案例
14 break 动词 /breɪk/ break | 布瑞克 破坏;中断;违反
15 rule 名词 /ruːl/ rule | 如尔 规则;规范;准则
16 practicality 名词 /ˌpræktɪˈkæləti/ prac·ti·cal·i·ty | 普莱克-提-可-利-提 实用性;实际可行性
17 purity 名词 /ˈpjʊərəti/ pu·ri·ty | 皮尤-瑞-提 纯粹性;纯净度
18 pass 动词 /pɑːs/ pass | 帕斯 通过;传递;忽略
19 unless 连词 /ənˈles/ un·less | 安-莱斯 除非;如果不
20 ambiguity 名词 /ˌæmbɪˈɡjuːəti/ am·bi·gu·i·ty | 安-比-纠-提 歧义;不确定性
21 temptation 名词 /tempˈteɪʃn/ tem·pta·tion | 坦普-泰-申 诱惑;引诱
22 guess 动词 /ɡes/ guess | 盖斯 猜测;推测
23 obvious 形容词 /ˈɒbviəs/ ob·vi·ous | 奥布-维-厄斯 显而易见的;明显的
24 preferably 副词 /ˈprefrəbli/ pref·er·a·bly | 普莱夫-瑞-布利 最好;更可取地
25 Dutch 名词 /dʌtʃ/ Dutch | 达奇 荷兰人(此处特指Python创始人Guido van Rossum)
26 never 副词 /ˈnevə(r)/ nev·er | 内夫-厄 从不;永不
27 right 副词 /raɪt/ right | 赖特 (加强语气)正好;立刻
28 implementation 名词 /ˌɪmplɪmenˈteɪʃn/ im·ple·men·ta·tion | 因-普利-门-泰-申 实现;实施
29 explain 动词 /ɪkˈspleɪn/ ex·plain | 依克-斯普莱恩 解释;说明
30 bad 形容词 /bæd/ bad | 巴德 坏的;不良的
31 idea 名词 /aɪˈdɪə/ i·dea | 艾-迪厄 想法;构想
32 easy 形容词 /ˈiːzi/ eas·y | 伊-兹 容易的;简单的
33 namespace 名词 /ˈneɪmspeɪs/ name·space | 内姆-斯佩斯 命名空间
34 honking 形容词(非正式) /ˈhɒŋkɪŋ/ honk·ing | 洪-金 (俚语)极大的;非常棒的
35 great 形容词 /ɡreɪt/ great | 格瑞特 伟大的;极好的
36 let 动词 /let/ let | 莱特 让;允许
37 do 动词 /duː/ do | 度 做;执行
38 those 代词 /ðəʊz/ those | 邹兹 那些
posted @ 2026-02-19 16:50  红尘过客2022  阅读(64)  评论(0)    收藏  举报