Python: take max N elements from some list

前端 未结 4 1385
后悔当初
后悔当初 2020-12-05 13:41

Is there some function which would return me the N highest elements from some list?

I.e. if max(l) returns the single highest element, sth. like m

4条回答
提交回复
热议问题