首页 Python深拷贝与浅拷贝
文章
取消

Python深拷贝与浅拷贝

test

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import math

print(math.PI)
a = dict()
b = dict()
c = [1,2,3]
a[1] = c
b[1] = c
d = a.get(1)
d.append(9)

print(a)
print(b)
print(c)
print(d)
本文由作者按照 CC BY 4.0 进行授权