Python PriorityQueue. How to get() the data element instead of its priority number?

前端 未结 0 1384
粉色の甜心
粉色の甜心 2021-01-25 02:09

I was wondering if there is any way to retrieve just the data element itself from a PriorityQueue instead of its priority number.

The example below prints number "11

相关标签:
回答
  • 消灭零回复
提交回复
热议问题