Python Material Installation Dokumentation PythonKara Grundlagen Namensräume Funktionen Testen Strings Dictionary Listen Zeitmessungen Zufall Bits+Bytes Module Sockets xml serielle Schnittstelle Python in HTML Turtle xturtle Tkinter OOP Threads Zusicherungen exe Patterns GnuPlot Goto MySQL CGI Dateien Exceptions Grafik Mathematik Fischertechnik Unicode funktional Iterator Sound C Debugger regex Pfade Docstrings Django Bluetooth format Bytecode signal
Pfad: Startseite / Fächer / Informatik / Python / format
Autor: mk
12.10.2011 12:06:20
262
format

Beispiel

Ausgabe von 'abc' oder 5 zentriert in einem Bereich der Länge 10 - Formatstring '^10'

print(format('abc','^10')
print(format(5,'^10')

Links