Hallo
Ich würde gerne im terminal/Konsole eine Tabelle ausgeben. Dabei ist mir wichtig, das zumindest die letzte Spalte rechtsbündig am Zeilenrand steht.
Eine Möglichkeit wäre natürlich, die Zeichenzahl auszulesen und dann mit leerzeichen zu arbeiten, aber schön ist das ja nicht
Hat da jemand eine Idee?
Nikolas
Tabelle im Terminal ausgeben
http://docs.python.org/lib/module-textwrap.html
http://docs.python.org/lib/string-methods.html
[ rjust ist wichtig ]
http://docs.python.org/lib/module-pprint.html
Oder man versucht es damit
http://docs.python.org/lib/string-methods.html
[ rjust ist wichtig ]
http://docs.python.org/lib/module-pprint.html
Oder man versucht es damit