ich verstehe nicht warum bei lstrip in folgendem beispiel "/ver" herauskommt:
Code: Alles auswählen
>>> dir="C:/Programme/Apache Group/Apache2/htdocs/crossover/"
>>> dir.lstrip("C:/Programme/Apache Group/Apache2/htdocs/")
'ver/'
rolgal
Code: Alles auswählen
>>> dir="C:/Programme/Apache Group/Apache2/htdocs/crossover/"
>>> dir.lstrip("C:/Programme/Apache Group/Apache2/htdocs/")
'ver/'
Weil in "C:/Programme/Apache Group/Apache2/htdocs/" kein v vorkommt, bricht lstrip eben beim v ab.rolgal hat geschrieben:ich verstehe nicht warum bei lstrip in folgendem beispiel "/ver" herauskommt: