1 多维数组的切片用法 c = np.array([[[0,1,2],[4,5,6],[8,7,5],[10,11,12]],[[6,2,3],[9,8,34],[100,101,102],[110,111,112]]]) c array([[[ 0, 1, 2], [ 4, 5, 6], [ 8, 7, 5], [ 10, 11, 12]], [[ 6, 2, 3], [ 9, 8, 34], [100, 101, 102], [110, 111, 112]]]) # c的shape是2 4…