Skip to content

Commit d1869a1

Browse files
authored
Update 30_copy_deepcopy.py
1 parent 09f35b7 commit d1869a1

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

basic/30_copy_deepcopy.py

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
# View more python learning tutorial on my Youtube and Youku channel!!!
2+
3+
# Youtube video tutorial: https://www.youtube.com/channel/UCdyjiB5H8Pu7aDTNVXTTpcg
4+
# Youku video tutorial: http://i.youku.com/pythontutorial
5+
16
import copy
27

38
a = [1,2,3]
@@ -18,4 +23,4 @@
1823
a = [1,2,[3,4]]
1924
d = copy.copy(a)
2025
print(id(a) == id(d))
21-
print(id(a[2]) == id(d[2]))
26+
print(id(a[2]) == id(d[2]))

0 commit comments

Comments
 (0)