Merge pull request #202 from Huang-Jinxian/patch-1

命令错误
This commit is contained in:
XiongNeng
2017-10-11 11:15:40 +08:00
committed by GitHub

View File

@@ -48,7 +48,7 @@ heapq 模块有两个函数:``nlargest()`` 和 ``nsmallest()`` 可以完美解
>>> import heapq
>>> heap = list(nums)
>>> heapq.heapify(heap)
>>> nums
>>> heap
[-4, 2, 1, 23, 7, 2, 18, 23, 42, 37, 8]
>>>