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個通道的三維數組,並給第二個通道的第一行
相關文章
相關標籤/搜索