I'll start using python and write what I'm addicted to.
x=['a','b','c']
y=x
Where y is ['a','b','c'].
But
Enter x [0] = "xxx" and change x to ['xxx','b','c']. Then y is also ['xxx','b','c']. The'a'part becomes'xxx'.
be careful.
Recommended Posts