) t6 |" l" ?" g5 l% Y" c: J* i0 ~% I& p0 Q
>>> import this" Q; K" B" f7 b0 n5 I k
1 . P4 B1 P6 ^& u+ R" A, B T% A4 l2 _. X. W+ p: C
一键回车:5 p* M, p9 O, h" D+ [% O
9 l% Z, D# [: M% F% O- o0 @5 R; t8 z; t* {5 P3 `; O) V
The Zen of Python, by Tim Peters7 k+ _* u1 q" l( K
( d8 j D# F' H4 o
Beautiful is better than ugly.5 k! v& t+ Y* k( M, {9 m
Explicit is better than implicit. 9 ~' `+ T5 c+ X1 R' [Simple is better than complex.& c9 O4 U4 M+ u7 ]) ~
Complex is better than complicated.' n. P- g# p, Z: H; g+ p6 N* {
Flat is better than nested.1 h3 G+ {4 I$ w; I. U' N* A% x
Sparse is better than dense. # ^4 }+ I7 C/ m7 J1 u( jReadability counts.- h) a6 c P( b
Special cases aren't special enough to break the rules. 2 e. E8 |) l& Q ZAlthough practicality beats purity." ?; t# _! K U- N) n" \) n F
Errors should never pass silently. , g( w; b" I# y- BUnless explicitly silenced.' G/ g" P4 v9 M. X1 f) x
In the face of ambiguity, refuse the temptation to guess. 0 y% W, ^& B; x$ FThere should be one-- and preferably only one --obvious way to do it. ' w( o' _+ e9 I* Z! F% t$ S IAlthough that way may not be obvious at first unless you're Dutch.8 S2 C" l* a/ j" g6 d: X
Now is better than never.% z+ d4 Z, p' g, A8 I# i' u
Although never is often better than *right* now.* a/ R. E$ L. c; B$ h. I
If the implementation is hard to explain, it's a bad idea.7 f' [! q* B9 K
If the implementation is easy to explain, it may be a good idea.9 q* a9 X$ \* W
Namespaces are one honking great idea -- let's do more of those!9 s! Q6 |, S# s' [' R
' \$ b& p$ a6 r1 u% a6 i具体翻译如下:. Y, C [$ ^! _& w4 b- p
& }+ u' ^/ }6 Y$ @7 p
% b2 ], G6 E& s, e, n# B8 U2 n7 {6 t p! e
———————————————— $ B# ]/ s4 g5 b) |) o版权声明:本文为CSDN博主「Rocky0429」的原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接及本声明。/ O: q5 r# H- C9 V
原文链接:https://blog.csdn.net/u013486414/article/details/104873811 6 X* D' B/ `! N. h , | c" O0 N! Z# n# g& S S2 t: v$ c5 G# I+ B! ~# n