Alternatively, we can pass a single list or array of indices to obtain the same result: In [3]:. ind = [3, 7, 4] x[ind]. Out[3]:. array([71, 86, 60]).
確定! 回上一頁