This shows you the differences between two versions of the page.
|
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()) | + | print(q.get()) |
| </ | </ | ||