python numpy 创建2维度数组

c = np.array([2,2,2,2]).reshape(2,2)

通过reshape来实现1维到n维的转变

posted @ 2022-03-20 21:37  bH1pJ  阅读(55)  评论(0编辑  收藏  举报