Skopiuj tablicę 2D w Pythonie
from copy import copy, deepcopy
y = deepcopy(x)
Nervous Nightingale
from copy import copy, deepcopy
y = deepcopy(x)
# This is assuming that it is a matrix
newArr = [[arr[i][j] for i in range(len(arr))] for j in range(len(arr[0]))]
b = [x[:] for x in a]