🌈 搜索
📅  最后修改于: 2022-03-11 14:47:06.996000             🧑  作者: Mango
vals = numpy.array([2,3,1,4,5]) sort_index = numpy.argsort(vals) >>> sort_index array([2, 0, 1, 3, 4])