Kann mir jemand sage was folgender Pythoncode macht?
Was macht dieser Pythoncode?
-
-
adresslist wird ein tupel sein, das in einen String "adressString" gepackt wird
str() konvertiert einen anderen datentyp in einen String
lstrip([chars])
Return a copy of the string with leading characters removed. If chars is omitted or None, whitespace characters are removed. If given and not None, chars must be a string; the characters in the string will be stripped from the beginning of the string this method is called on.
Wenn der String dann nicht leer ist, wird der headername noch vor den adressString gepackt..
fertig -
"d0nUt" schrieb:
adresslist wird ein tupel sein, ...
Oder eine Liste ... was aber eher unerheblich ist, da beide iterierbar sind.