User Tools

Site Tools


python3:priority_queue

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

python3:priority_queue [2019/05/07 16:45]
jguerin Added example on modifying priority.
python3:priority_queue [2019/05/07 16:48] (current)
jguerin
Line 10: Line 10:
 q.put(5) q.put(5)
 while not q.empty(): while not q.empty():
-    print(q.get())                             prints: 1 5 10+    print(q.get())    # 1 5 10
 </file> </file>
  
python3/priority_queue.txt ยท Last modified: 2019/05/07 16:48 by jguerin