python numpy one-dimensional array into multidimensional array

import numpy
new_list = [i for i in range(9)]
numpy.array(new_list).reshape(3,3)

With the help of the numpy library;


Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325853627&siteId=291194637