Shallow Copy. One way is to use the copy module in python. import copya = [1, 2, 3] b = copy.copy(a) b[2] = 11 print("list a:", a)
確定! 回上一頁