Skip to content

Commit e85ae42

Browse files
committed
8.6 创建可管理的属性 修正错别字
1 parent 9d124f4 commit e85ae42

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/c08/p06_create_managed_attributes.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ property的一个关键特征是它看上去跟普通的attribute没什么两样
110110
<function Person.first_name at 0x1006a62e0>
111111
>>>
112112
113-
通常来讲,你不会直接取调用fget或者fset,它们会在访问property的时候自动被触发。
113+
通常来讲,你不会直接去调用fget或者fset,它们会在访问property的时候自动被触发。
114114

115115
只有当你确实需要对attribute执行其他额外的操作的时候才应该使用到property。
116116
有时候一些从其他编程语言(比如Java)过来的程序员总认为所有访问都应该通过getter和setter,

0 commit comments

Comments
 (0)