rstrip in list problem
Verfasst: Mittwoch 25. August 2010, 10:49
Hallo,
wie kann man rstrip auf eine Liste anwenden?
Viele Grüße
wie kann man rstrip auf eine Liste anwenden?
Code: Alles auswählen
>>> a, b, c, d, e = "slkfj , kdsfjk , jdks, ksdfj , kdfak".split(",").rstrip
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'list' object has no attribute 'rstrip'