# -*- coding: utf-8 -*-
"""
Created on Mon May 6 15:58:12 2019
@author: Administrator
"""
from copy import deepcopy
a=[1,2,['str1','str2']]
b=deepcopy(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']]