Advertisement
Guest User

nsi

a guest
Jan 20th, 2020
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. def affiche_table(table):
  2. for ligne in table :
  3. for i in range(len(ligne)):
  4. if i == 1 :
  5. print("{:>2}".format(ligne[i]), end = "")
  6. if i == 2 :
  7. print("{:>40.40}".format(ligne[i]), end = "")
  8. if i == 6 :
  9. print("{:>25}".format(ligne[i]), end = "")
  10. if i == 5 :
  11. print("{:>5}".format(ligne[i]), end = "")
  12. if i == 15 :
  13. print("{:>7}".format(ligne[i]), end = "")
  14. if i == 16 :
  15. print("{:>10}".format(ligne[i]), end = "")
  16. if i == 17 :
  17. print("{:>10}".format(ligne[i]), end = "")
  18. print("")
  19. print("---")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement