numpy[:,1]
第a维坐标为b的数据
[:,:,...:b]-共a个
import numpy as np
# 3维
a = np.array([[[1,2],[3,4]]]) a[:,:,1] output: array([[2, 4]]) input:a[:,1,:] output:
第a维坐标为b的数据
[:,:,...:b]-共a个
import numpy as np
# 3维
a = np.array([[[1,2],[3,4]]]) a[:,:,1] output: array([[2, 4]]) input:a[:,1,:] output: