Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found
Select Git revision
  • master
1 result

Target

Select target project
  • rvuillem/inf-tc1
  • hwei/inf-tc1
  • nmbengue/inf-tc1
  • fernanda/inf-tc1
  • mleger/inf-tc1
  • lmeng/inf-tc1
  • gferryla/inf-tc1
  • jconso/inf-tc1
  • smaghsou/inf-tc1
  • emarquet/inf-tc1
  • ecluzel/inf-tc1
  • aaudeoud/inf-tc1
  • tsegond/inf-tc1
  • aetienne/inf-tc1
  • djoly/inf-tc1
  • bcampeas/inf-tc1
  • dnovarez/inf-tc1
  • ruetm/inf-tc1
  • cchenu/inf-tc1
  • cguiotdu/inf-tc1
  • mclouard/inf-tc1
  • gwachowi/inf-tc1
  • qbaalaou/inf-tc1
  • sbrocas/inf-tc1
  • ppupion/inf-tc1
  • kinty/inf-tc1
  • hadomo/inf-tc1
  • tgicquel/inf-tc1
  • rhahn/inf-tc1
  • cguyau/inf-tc1
  • mpairaul/inf-tc1
  • rmuller/inf-tc1
  • rlecharp/inf-tc1
  • asebasty/inf-tc1
  • qmaler/inf-tc1
  • aoussaid/inf-tc1
  • kcherigu/inf-tc1
  • sgu/inf-tc1
  • malcalat/inf-tc1
  • afalourd/inf-tc1
  • phugues/inf-tc1
  • lsteunou/inf-tc1
  • llauschk/inf-tc1
  • langloia/inf-tc1
  • aboucard/inf-tc1
  • wmellali/inf-tc1
  • ifaraidi/inf-tc1
  • lir/inf-tc1
  • ynedjar/inf-tc1
  • schneidl/inf-tc1
  • zprandi/inf-tc1
  • acoradid/inf-tc1
  • amarcq/inf-tc1
  • dcombet/inf-tc1
  • gplaud/inf-tc1
  • mkernoaj/inf-tc1
  • gbichot/inf-tc1
  • tdutille/inf-tc1
58 results
Select Git revision
  • master
1 result
Show changes
Showing
with 2135 additions and 48 deletions
This diff is collapsed.
TD03/code/ecl.jpg

103 KiB

from graphviz import Digraph
name = 'arbre-viz-profondeur'
g = Digraph('G', filename = name + '.gv', format='png') # par defaut format='pdf'
g.edge('chien', 'petit', color="blue")
g.edge('chien', 'et')
g.edge('petit', 'le')
g.edge('et', 'jaune')
g.edge('et', 'noir')
g.node('et', fillcolor='red', style='filled')
# génere et affiche le graphe name.gv.png
g.view()
\ No newline at end of file
File deleted
File deleted
This diff is collapsed.
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
# initialisation de la file
file_prio = PriorityQueue()
# remplissage
file_prio.put((2, "Bob"))
file_prio.put((1, "Alice"))
file_prio.put((6, "Nat"))
# permet d'accéder au premier élément de la file
# (sans le supprimer)
print(file_prio.queue[0])
# tant que non vide, affiche par ordre de priorité
# (mais supprimer chaque élément accédé)
while not file_prio.empty():
print(file_prio.get()[1])
File moved
File deleted
This diff is collapsed.
TD05/figures/1-color-back.png

270 B

TD05/figures/4-color.png

767 B

TD05/figures/analyse.png

38.8 KiB

TD05/figures/color-rainbow.png

12.3 KiB

TD05/figures/palette-16.png

519 B

TD05/figures/placeholder.png

7.67 KiB

TD05/figures/rainbow-palette-8.png

1.59 KiB

TD05/figures/rainbow-recoloriee.png

6.54 KiB

TD05/figures/rainbow.png

12.3 KiB