# * coding: UTF8 * """ 该模块实现相应 CPython 模块的子集,如下所示。 堆队列即为以一定方式储存其所有项的列表。 函数 ------------------------------ """ def heappush(heap, item): """ 将item载入heap中 """ pass def heappop(heap): """ 从 heap 中提取首项,并返回,若堆为空,则引发Index错误 """ pass def heapify(x): """ 将列表 x 转换为一个堆 """ pass