1、heapq模块的使用:
https://blog.csdn.net/weixin_34390105/article/details/86029114
2、heapq模块实现大小堆:
https://blog.csdn.net/tanghaiyu777/article/details/55271004
3、python:heapq模块对嵌套字典或二维列表取topN
以前一直以为刷leetcode没用,最近工作都碰到了两次leetcode类型的题了。这次是topn问题。记录如下:
https://blog.csdn.net/Yvettre/article/details/80456809