源代码下载:下载地址在这里 # 026 aList = ['1','2','3','4'] aListCopy = aList # 其实,这里仅仅复制了一个引用 del aList[0] print aList print aListCopy # 两个引用指向了了同一个对象,所以打印结果一样 aListCopy = aList[:] # 这是复制整个对象的有效方法 del aList[0] print aList print aListCopy output: ['2', '3', '4'] ['2', '3', '4'] ['3', '4'] ['2', '3', '4']