argsort in Python
摘要:
def argsort(mylist): return sorted(range(len(mylist)), key=mylist.__getitem__)or return [i for (v, i) in sorted((v, i) for (i, v) in enumerate(seq))] 阅读全文
posted @ 2011-12-09 21:11 xueliangliu 阅读(435) 评论(0) 推荐(0) 编辑