We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 09f35b7 commit d1869a1Copy full SHA for d1869a1
basic/30_copy_deepcopy.py
@@ -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
6
import copy
7
8
a = [1,2,3]
@@ -18,4 +23,4 @@
18
23
a = [1,2,[3,4]]
19
24
d = copy.copy(a)
20
25
print(id(a) == id(d))
21
-print(id(a[2]) == id(d[2]))
26
+print(id(a[2]) == id(d[2]))
0 commit comments