Write a program and found that the copy of python two-dimensional list cannot be used directly like one-dimensional
list()
or
copy() function
Need to separate each item using the following code
temp=[cells[i][:] for i in range(len(cells))]
Write a program and found that the copy of python two-dimensional list cannot be used directly like one-dimensional
list()
or
copy() function
Need to separate each item using the following code
temp=[cells[i][:] for i in range(len(cells))]