摘要: 打印ndarray数组 import numpy as np arr1 = np.array([1,2,3 ,4,5,6,7,8,9,10,11,12]).reshape(1,3,2,2) #输出结果如下: [[[[ 1 2] [ 3 4]] [[ 5 6] [ 7 8]] [[ 9 10] [11 阅读全文
posted @ 2021-01-17 00:30 烦恼1234 阅读(374) 评论(0) 推荐(0) 编辑