# When learning Pointers in Python, I had this problem:
a = ["3","2","1"]
b = a
b[0] = 30
So when I print the value of a, the value of a also becomes the value of b.
But the second line only assigns the value of a to b, and the third line changes the number 3 in b's list to 30 instead of assigning the value of b to a again.
But why print the value of a instead of b?
The details are as follows:
< div class = "aw - list - img >
0 Answer
No answer yet
这家伙很懒,什么都没留下...