import numpy as np
box=np.array([[1,2,3],[4,5,6],[7,8,9]])
box_1=box[:,0]+box[:,1]
box_2=box[:,1]+box[:,2]
box_3=box[box_1>10]
box=box[np.logical_and(box_1<10,box_2>10)]
print(box_1)
print(box_2)
print(box_3)
print(box)
#box1
[ 3 9 15]
#box2
[ 5 11 17]
#box3
[[4 5 6]]
# box
[[7 8 9]]
满足[]内条件的子项,还是满足维度的