From a009d0e4028d1ae31add45305e592d473c78c1d6 Mon Sep 17 00:00:00 2001 From: Jean Sirmai Date: Sat, 11 Dec 2021 22:05:13 +0100 Subject: [PATCH] =?UTF-8?q?WIP:=20arbre=20des=20conditions:=20premi=C3=A8r?= =?UTF-8?q?e=20=C3=A9bauche?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/glimpse.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/glimpse.py b/src/glimpse.py index efc0418..25b7e3e 100644 --- a/src/glimpse.py +++ b/src/glimpse.py @@ -49,11 +49,11 @@ for i in l: affichage = '' for i in l: - 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,']') + affichage = str(i.id) + ' ' + str(i.parent) + ' n=' + str(len(i.ch)) + ' ' + if len(i.ch) > 0: + for c in range (0, len(i.ch)): + affichage = affichage + str(i.ch[c].id) + ', ' + print(affichage)