python三维数组知识点
三维数组中每一个元素表示
代码块
import numpy as np
b = np.array([[[1, 2, 3, 4], [5, 6, 7, 8], [9, 10, 11, 12]],
[[13, 14, 15, 16], [17, 18, 19, 20], [21, 22, 23, 24]],
[[25, 26, 27, 28], [29, 30, 31, 32], [33, 34, 35, 36]],
])
print("b.shape:\n", b.shape)
print("b:\n",b) # 他输出的是三个zoy面
print("b[0, 0, 0]:\n", b[0, 0, 0])
print("b[0, 0, 1]:\n", b[0, 0, 1])
print("b[0, 0, 2]:\n", b[0, 0