From 7e6f5023a1ed349a68d7163544e98dc234dfc21d Mon Sep 17 00:00:00 2001 From: Jean Sirmai Date: Sat, 11 Dec 2021 20:35:19 +0100 Subject: [PATCH] WIP: nettoyage, encore... (+ erreur affichage) --- src/glimpse.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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,']')