我有一个距离数组,a = np.array([20.5 ,5.3 ,60.7 ,3.0 ], 'double')我需要排序数组的索引(例如[3, 1, 0, 2],for a.sort()).Numpy有功能吗?
a = np.array([20.5 ,5.3 ,60.7 ,3.0 ], 'double')
[3, 1, 0, 2]
a.sort()
python numpy
numpy ×1
python ×1