深浅拷贝 s=[[1,2],'fgfgf','cx'] s3=s.copy() print(s) print(s3) 测试 D:\python\python.exe D:/untitled/dir/for.py [[1, 2], 'fgfgf', 'cx'] [[1, 2], 'fgfgf', 'cx'] Process finished with exit code 0 浅拷贝之修改 s=[[1,2],'fgfgf','cx'] s3=s.copy() print(s3) s3[1]='chh…