在某个集合中找出最大或最小的N个元素,heapq模块中的两个函数——nlargest()和nsmallest()
https://blog.csdn.net/qq_37119902/article/details/79471521
collections.Counter可以统计数据
https://blog.csdn.net/qwe1257/article/details/83272340
来源:CSDN
作者:sukurax
链接:https://blog.csdn.net/s1421578048/article/details/104222412