📜  如何在列表python代码示例中创建所有对象的副本

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

代码示例1
import copy
new_list = copy.deepcopy(old_list)
# Copying list itself and objects inside it(very slow, however, but there's no other methods)