更详细见:
https://docs.scipy.org/doc/numpy-dev/user/quickstart.html
1. 列表下标(索引)相关操作
numpy.argmax()
返回数组中最大值的下标。
numpy.argmin()
返回数组中最小值得下标。
numpy.argsort()
返回数组排好序的下表。
Code Example:
>>> import numpy as np
>>> l = [3, 2, 1, 4]
>>> np.argmax(l)
3
>>> np.argmin(l)
2
>>> np.argsort(l)
array([2, 1, 0, 3])