Python笔记——list的前n大个值

[listname.index(x) for x in sorted(listname, reverse=True)[:4]]

你可能感兴趣的:(Python笔记,python)