Python: heapq - how to get element by priority index

前端 未结 0 1070
小蘑菇
小蘑菇 2020-12-20 00:31

I am new in python and I need to find data structure that will help me:

  • iterate through elements until it would be empty
  • get (and delete) element by pr
相关标签:
回答
  • 消灭零回复
提交回复
热议问题