Skip to content
Snippets Groups Projects
Commit 4a0ca28b authored by Romain Vuillemot's avatar Romain Vuillemot
Browse files

td4

parent 003a5c44
Branches
No related tags found
Loading
labyrinthe = [[0, 0, 0, 0, 1, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 1, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 1, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 1, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 1, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 1, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 1, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 1, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0]]
def affiche_labyrinthe(l):
print('\n'.join([''.join(['{:4}'.format(item) for item in row])
for row in l]))
\ No newline at end of file
from queue import PriorityQueue
file_prio = PriorityQueue()
file_prio.put((2, "Bob"))
file_prio.put((1, "Alice"))
while not file_prio.empty():
print(file_prio.get())
\ No newline at end of file
File added
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment