Answers for "python 1d array into 2d array"

3

python 1d array into 2d array

arr2d = [[arr1d[i+j*width] for i in range(width)] for j in range(height)]
Posted by: Guest on October-12-2021

Python Answers by Framework

Browse Popular Code Answers by Language