📜  排序列表的索引python代码示例

📅  最后修改于: 2022-03-11 14:47:06.996000             🧑  作者: Mango

代码示例1
vals = numpy.array([2,3,1,4,5])
sort_index = numpy.argsort(vals)

>>> sort_index
array([2, 0, 1, 3, 4])