diff --git a/src/glimpse.py b/src/glimpse.py index 7543494..efc0418 100644 --- a/src/glimpse.py +++ b/src/glimpse.py @@ -46,9 +46,14 @@ for i in l: if (i.id == j.parent): i.add_child(j) +affichage = '' + for i in l: - cnd = str(i.id) + ' ' + str(i.parent) + ' [' + str(len(i.ch)) + ']' - print(cnd) + affichage = str(i.id) + ' ' + str(i.parent) + ' n=' + str(len(i.ch)) + ' [' + for c in range (0, len(i.ch)): + print(str(i.ch[c].id)) + affichage + str(i.ch[c].id) + ',' + print(affichage,']')