Deep Copy in Python · import copy · x = [[1, 2, 3], [4, 5, 6], [7, 8, 9]] · z = copy.deepcopy(x) · x[2][2] = 'Hello' · print(x).
確定! 回上一頁