DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
python argsort a list
a=list((1, 2, 3, -20)) sorted(range(len(a)), key=a.__getitem__) output: [3, 0, 1, 2]
PREVIOUS
NEXT
Tagged:
#python
#argsort
#list
ADD COMMENT
Topic
COMMENT
Name
1+7 =
Submit