Python中三维数组位置详解

图示效果图:   直接贴代码: def test3D():     import numpy as np     data_array = np.zeros((3, 5, 6), dtype=np.int)     data_array[1, 2, 2] = 1       print(data_array)   介绍:通过np.zeros创建一个3行5列6个通道的三维数组,并给第二个通道的第一行
相关文章
相关标签/搜索