Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e0d688 commit 76eb42aCopy full SHA for 76eb42a
1 file changed
reference/datamodel.po
@@ -159,6 +159,11 @@ msgid ""
159
"different, unique, newly created empty lists. (Note that ``c = d = []`` "
160
"assigns the same object to both ``c`` and ``d``.)"
161
msgstr ""
162
+"类型会影响对象行为的几乎所有方面。甚至对象编号的重要性也在某种程度上受到影响: "
163
+"对于不可变类型,会得出新值的运算实际上会返回对相同类型和取值的任一现有对象的引用,而对于可变类型来说这是不允许的。例如在 ``a = 1; b = "
164
+"1`` 之后,``a`` 和 ``b`` 可能会也可能不会指向同一个值为一的对象,这取决于具体实现,但是在 ``c = []; d = []`` "
165
+"之后,``c`` 和 ``d`` 保证会指向两个不同、单独的新建空列表。(请注意 ``c = d = []`` 则是将同一个对象赋值给 ``c`` 和 "
166
+"``d``。)"
167
168
#: ../../reference/datamodel.rst:120
169
msgid "The standard type hierarchy"
0 commit comments