importcopyperson=['name',['a',100]]p1=copy.copy(person)p2=person[:]p3=list(person)person[0]='kk'p4=personprint(p1)print(p2)print(p3)print(p4)打印:['name',['a',100]]['name',['a',1
Copyright © 2005-2024 51CTO.COM 版权所有 京ICP证060544号