$ r% D. `& {5 ^. l: \" g! x5 O( w) I; p; r" M' [$ K$ u0 A1 F8 y. Q1 R
5 D0 X: M7 |, z9 A/ L0 X- x就是上面这个图… 5 K2 a0 K5 l3 b5 \: L& U d真的是搞笑,都是英文,我怎么看的懂嘛…. f* Y1 [8 p9 z) l
一键翻译… o' y i0 {- L1 l. u3 w: f
! G3 \' n2 g |$ U' T5 C/ W0 p5 j5 W
奥,这个我知道,不就是说 Python 语法简单,功能牛批么…+ z" O4 y) u6 D' f: C9 U. c# H
果然是…直接。) q7 o% d2 R. F. |5 @2 S
$ `: Z# I7 S4 d
# W( E% K* Z) P) K5 E9 a% v9 G
% x. b4 V5 O0 w& p/ d! f
& c6 l& a0 A# {) x8 A$ ]1 J: P ) n. d- G8 E( i M/ k7 g' f s! \- N! m6 B* M
0x04 爱是什么?6 {" R# i8 M' M3 G/ M& n) K
; c3 ~: p1 B/ x9 H# U2 N( s9 D( ~% [9 T6 u! L: }6 y* c; T
估计每个 Python 人儿都知道 Python 之禅,不知道也没事,就是下面这个东西:6 L0 x6 E1 J: E4 X p
$ `. R$ b" P2 E& D% a5 I9 ?0 l) c& E' c. s5 u
>>> import this5 L+ u. m' B( [/ h# h
1 # M$ s: Q$ m% l$ _5 \. Z ) b# y; V; w7 o+ P一键回车: ) M |) @; S. h. P) _3 L( k7 u2 V* O5 A9 \% P& a. ~
& J0 b* l& _" C* Y2 S. i/ K
The Zen of Python, by Tim Peters# L1 R5 S6 M# {$ r" h
6 I6 `. O# J; w4 M6 g A, o
Beautiful is better than ugly. 4 R, i/ n; n* {' ]- [' O g4 q. k; dExplicit is better than implicit.) q; C; t& _. @1 A
Simple is better than complex.6 v) A; z! U7 J7 r
Complex is better than complicated. - X. @ l* l- N r5 vFlat is better than nested. 2 E6 q2 y- n5 P8 T, g9 r# iSparse is better than dense. , r3 }; h$ D% W; Y' G( g; T2 bReadability counts. ' L0 w \& l M4 ~- u% nSpecial cases aren't special enough to break the rules., D, Y) |3 y) _
Although practicality beats purity." O. e: {- L, y
Errors should never pass silently. " L$ A/ M9 f2 @$ c5 B: H' q1 oUnless explicitly silenced.+ D) @/ s: \! Q, g
In the face of ambiguity, refuse the temptation to guess.7 F3 K7 b0 r) i7 Q; [% [ k
There should be one-- and preferably only one --obvious way to do it.$ ~+ b6 |7 A- O9 W. f7 ? t
Although that way may not be obvious at first unless you're Dutch.) l+ e7 y" w" m: I w4 p
Now is better than never.6 T4 y' F0 M2 b5 i9 w- i1 R
Although never is often better than *right* now. " Z4 H7 ?7 l4 k# v3 L7 IIf the implementation is hard to explain, it's a bad idea. 1 E2 G& V/ V* JIf the implementation is easy to explain, it may be a good idea. ; A8 O2 y8 y' L; D0 C& }Namespaces are one honking great idea -- let's do more of those!# L+ y8 Y. D+ \ w
6 J+ S4 C$ W2 N( u( E1 ?0 d0 a% k' u
具体翻译如下: ) a0 L2 F' t' W O8 y& d ! r9 w3 L6 z% t2 L, R# K1 D) }; E8 y/ i7 k s
好好学习 - f0 p5 p- D3 f$ A( A0 [天天向上 5 k# C- s4 }( F' y 6 s A- m8 S! H$ ^) m) `# T9 F3 P% o$ [- {
! H- _$ a6 F5 w K/ L4 G8 u! ~6 j. i/ s7 T
this 是什么?+ a1 R6 U: r5 x
经过我的剽窃,啊不,参考…5 _) C+ U$ _+ H) I. S/ A B
this 是爱啊…/ I, h4 j6 ]3 O7 f
# e" F7 }9 E0 X! Z4 y5 x