2012/7/24 Walter Valenti <waltervale...@yahoo.it>

> stringa.rstrip()
>

Giusto, ma meglio ricordare che vengono rimossi anche gli spazi bianchi, i
tab, i CR (carriage return), i LF (line feed), i FF (form feed) e i VT
(vertical tab):

>>> "fwefw   \n\r\t\f\v".rstrip()
'fwefw'

Ciao.
Marco.

-- 
http://beri.it/ - Un blog
http://beri.it/i-miei-libri/ - Qualche libro
_______________________________________________
Python mailing list
Python@lists.python.it
http://lists.python.it/mailman/listinfo/python

Rispondere a