python浅拷贝、深拷贝
a = {"q": 1, "c": ["abc", 1]}
b = a # 直接赋值:对象引用,别名
c = a.copy() # 浅拷贝:拷贝父对象,不会拷贝对象的内部的子对象
d = copy.deepcopy(a) # 深拷贝:完全拷贝了父对象及其子对象
b["q"] = "7777"
b["c"].append(123)
print("a: ", a)
print("b: ", b)
print("c: ", c)
print("d: ", d)
执行结果: