理解:
import copy
origin = [1, 2, [3, 4]] # origin 里边有三个元素:1, 2,[3, 4]
cop1 = copy.copy(origin)
cop2...= copy.deepcopy(origin)
print cop1 == cop2 # True
print cop1 is cop2 # False
# 说明: cop1 和 cop2 目前看上去还相同..., 4]]
print cop1 # [1, 2, ['hey!'...#"
print cop1.x # ['**', 2, [1, '##']]
print cop2.x # [1, 2, [1, 2]]
# 改变类变量的属性
origin.X[0] = "**..."
origin.X[2][1] = "##"
print cop1.X # ['**', 2, [1, '##']]
print cop2.X # ['**', 2, [1, '##']]
什么是断言