跳到主要内容

top

获取队列中的最大元素,时间复杂度为O(1)

声明

mixed top(PriorityQueue self)

参数

参数名描述
self

返回值

使用方式

返回文档