WIP: nettoyage, encore... (+ erreur affichage)

This commit is contained in:
Jean Sirmai 2021-12-11 20:35:19 +01:00
parent 3517e73de4
commit 7e6f5023a1
Signed by: jean
GPG Key ID: FB3115C340E057E3
1 changed files with 7 additions and 2 deletions

View File

@ -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,']')