2012/7/24 Lorenzo Sutton <lorenzofsut...@gmail.com>

> >>> "asdasds      \n\r\t\f\vmario".rstrip('**mario')
> 'asdasds      \n\r\t\x0c\x0b'
>

Questo non fa quello che pensi ma strippa tutte le "m", le "a", ecc.

>>> "aaarroim".rstrip("mario")
''

Ciao.
Marco.
_______________________________________________
Python mailing list
Python@lists.python.it
http://lists.python.it/mailman/listinfo/python

Rispondere a