StackOverflow 文档 Python Language 教程 复制数据 执行浅拷贝 执行浅拷贝 Created: November-22, 2018 浅拷贝是集合的副本,不执行其元素的副本。 >>> import copy >>> c = [[1,2]] >>> d = copy.copy(c) >>> c is d False >>> c[0] is d[0] True 执行深层复制复制字典