摘要: # 浅拷贝 # 浅拷贝只会拷贝第一层的数据,修改拷贝数据的第一层不会变更原数据,超过第一层的数据会把原数据也修改 shallow_list = [[1, 2], 3, 4] shallow_list1 = shallow_list.copy() shallow_list1[1] = "123" pr 阅读全文
posted @ 2024-08-21 16:46 GDquicksand 阅读(3) 评论(0) 推荐(0) 编辑