This commit is contained in:
2022-11-23 18:10:46 +01:00
parent b8d72c3bc3
commit b8dec3a77d
11 changed files with 179 additions and 4 deletions

View File

@@ -32,4 +32,18 @@ Stringformat :
{0:>..} -> s=string, d=dict, x=Hexa, X=Oktal, b=binar, f=float
{0:->13} 0x{1:0>4b}".format("abc", 23) -> Beispiel oder "{0:->{width}} 0x{1:0>4b}".format("abc", 23, width=13)
pydoc3 zeigt die Helps an Beispiel pydoc3 sys
pydoc3 zeigt die Helps an Beispiel pydoc3 sys
IN $PYTHONPATH sucht Python nach Modulen
Die wichtigen vars von Funktion
__name__
__file__
z.B print(str.__name__)
Alle Exceptions sind im Netz https://docs.python.org/3/library/exceptions.html
mit join mach ich die Liste wieder zusammen
.join(format_tb(e.__traceback__)