擅长:python、mysql、java
<p>Python中的标量对象是不可变的。如果使用非标量对象(如列表),可以执行以下操作:</p>
<pre><code>>>> x = [0]
>>> y = x
>>> y[0] = 4
>>> y
[4]
>>> x
[4]
>>> x is y
True
</code></pre>
<p>Python没有指向简单标量值的“指针”概念。在</p>