Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

python 1d array into 2d array

arr2d = [[arr1d[i+j*width] for i in range(width)] for j in range(height)]
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #array #array
ADD COMMENT
Topic
Name
3+2 =