📜  python 克隆对象 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:09.690000             🧑  作者: Mango

代码示例3
>>> import copy
>>> a = 0
>>> b = 2
>>> a = copy.copy(b)
>>> b += 1
>>> a
2
>>> b
3