Skip to content

Commit 2c7cc8f

Browse files
authored
修改错字
1 parent a9cd77b commit 2c7cc8f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/c08/p04_save_memory_when_create_large_number_instances.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
2424
当你定义 ``__slots__`` 后,Python就会为实例使用一种更加紧凑的内部表示。
2525
实例通过一个很小的固定大小的数组来构建,而不是为每个实例定义一个字典,这跟元组或列表很类似。
26-
在 ``__slots__`` 中列出的属性名在内部被映射到这个数组的指定小标上
26+
在 ``__slots__`` 中列出的属性名在内部被映射到这个数组的指定下标上
2727
使用slots一个不好的地方就是我们不能再给实例添加新的属性了,只能使用在 ``__slots__`` 中定义的那些属性名。
2828

2929
----------

0 commit comments

Comments
 (0)