從Python中的最大值和最小值依次獲取列表的n個元素 https://tw.from-locals.com/python-max-min-heapq-nlargest-nsmallest/