1 parent 9d124f4 commit e85ae42Copy full SHA for e85ae42
1 file changed
source/c08/p06_create_managed_attributes.rst
@@ -110,7 +110,7 @@ property的一个关键特征是它看上去跟普通的attribute没什么两样
110
<function Person.first_name at 0x1006a62e0>
111
>>>
112
113
-通常来讲,你不会直接取调用fget或者fset,它们会在访问property的时候自动被触发。
+通常来讲,你不会直接去调用fget或者fset,它们会在访问property的时候自动被触发。
114
115
只有当你确实需要对attribute执行其他额外的操作的时候才应该使用到property。
116
有时候一些从其他编程语言(比如Java)过来的程序员总认为所有访问都应该通过getter和setter,
0 commit comments