leemengtaiwan
12/3/2017 - 4:23 AM

回傳list裡頭值最小的index = np.argmin

回傳list裡頭值最小的index = np.argmin

l = [100, 1000, 10000]
min(enumerate(l), key=lambda x: x[1])[0]

References
- https://stackoverflow.com/a/16945868/3859572