万千封印
您确实需要构造一个新的索引元组:In [8]: ind=np.unravel_index([7,8],(3,3)) In [9]: ind Out[9]: (array([2, 2]), array([1, 2]))In [10]: (slice(None),*ind) Out[10]: (slice(None, None, None), array([2, 2]), array([1, 2]))In [11]: np.arange(27).reshape(3,3,3)[_] Out[11]: array([[ 7, 8], [16, 17], [25, 26]])在Out[10]相当于添加:到您的拆开的指标:In [12]: np.s_[:,[2,2],[1,2]] Out[12]: (slice(None, None, None), [2, 2], [1, 2])