Skip to content

Commit 9d124f4

Browse files
committed
修正错别字
1 parent 54a2635 commit 9d124f4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/c08/p05_encapsulating_names_in_class.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,6 @@ Python并不会真的阻止别人访问内部名称。但是如果你这么做
8080
8181
lambda_ = 2.0 # Trailing _ to avoid clash with lambda keyword
8282
83-
这里我们并不使用单下划线前缀的原因是它避免误解它的使用初衷
84-
(如使用单下划线前缀的目的是为了防止命名冲突而不是指明这个属性是私有的)。
83+
这里我们并不使用单下划线前缀的原因是避免误解它的使用初衷
84+
(如使用单下划线后缀的目的是为了防止命名冲突而不是指明这个属性是私有的)。
8585
通过使用单下划线后缀可以解决这个问题。

0 commit comments

Comments
 (0)