标签:lin index utf-8 odi python UNC font ons size
复制列表的方法# coding = utf-8
import copylist = [1,2,3]# 普通赋值(引用)list_a = list# 切片赋值(引用)list_b = list[:]# 浅拷贝list_c = list.copy()list_d = copy.copy(list) # 需要导入copy包# 深拷贝list_e = copy.deepcopy(list) # 需要导入copy包标签:lin index utf-8 odi python UNC font ons size
原文地址:https://www.cnblogs.com/joneylulu/p/10124360.html