# -*- coding: utf-8 -*-
"""
Created on Mon May 6 15:50:07 2019
@author: Administrator
"""
from copy import copy
a=[1,2,['str1','str2']]
b=copy(a)
print(a is b)
a.append(3)
print(b)
a[2].append('str3')
print(b)
运行:
False
[1, 2, ['str1', 'str2']]
[1, 2, ['str1', 'str2', 'str3']]