Nettoyage de affichage
This commit is contained in:
parent
bbcd49c88c
commit
46b5aca99f
1 changed files with 20 additions and 1 deletions
|
@ -558,7 +558,26 @@ if __name__ == "__main__":
|
|||
time.sleep(1)
|
||||
prettyDoin("Les carottes sont cuites." , "Ok")
|
||||
|
||||
data = [[style("Durand", "rouge"), "Toto", "40", "50 rue Döp"], ["Dupont", "Robert", "50", "42" + style(" avenue ", "vert") + style("dumotel", 'rouge')], [style("znvuzbvzruobouzb", ["gras", "vert"]), "pppoe", "1", "poiodur 50 pepe"]]
|
||||
data = [
|
||||
[
|
||||
style("Durand", "rouge"),
|
||||
"Toto",
|
||||
"40",
|
||||
"50 rue Döp"
|
||||
],
|
||||
[
|
||||
"Dupont",
|
||||
"Robert",
|
||||
"50",
|
||||
"42" + style(" avenue ", "vert") + style("dumotel", 'rouge')
|
||||
],
|
||||
[
|
||||
style("znvuzbvzruobouzb", ["gras", "vert"]),
|
||||
"pppoe",
|
||||
"1",
|
||||
"poiodur 50 pepe"
|
||||
]
|
||||
]
|
||||
titres = ("Nom", "Prénom", "Âge", "Adresse")
|
||||
longueurs = [25, 25, '*', '*']
|
||||
print tableau(data, titres, longueurs).encode(guess_preferred_encoding())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue