We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 616973e + 36942f1 commit 941c3c7Copy full SHA for 941c3c7
source/c01/p04_find_largest_or_smallest_n_items.rst
@@ -48,7 +48,7 @@ heapq 模块有两个函数:``nlargest()`` 和 ``nsmallest()`` 可以完美解
48
>>> import heapq
49
>>> heap = list(nums)
50
>>> heapq.heapify(heap)
51
- >>> nums
+ >>> heap
52
[-4, 2, 1, 23, 7, 2, 18, 23, 42, 37, 8]
53
>>>
54
0 commit comments