摘要:深浅拷贝 1 import copy 2 3 husband=['xiaoxin',123,[200000,100000]] 4 5 wife=husband.copy() #浅拷贝 6 wife[0]='xiaohong' 7 wife[1]='456' 8 9 xiaosan=copy.deep 阅读全文
posted @ 2018-10-10 14:29 Nick1994 阅读(81) 评论(0) 推荐(0) 编辑