python> link> remove CR, LF>'test string \ n'.rstrip ()

Operating environment


Raspberry Pi2 + raspbian

I want to remove CR and LF from a String type string. Seems to use rstrip ().

http://stackoverflow.com/questions/275018/how-can-i-remove-chomp-a-newline-in-python

--Search keywords

Recommended Posts

python> link> remove CR, LF>'test string \ n'.rstrip ()
Python string
Python: String concatenation
Python string format
python string slice
Python2 string type
Python string format
Python # string type
Python string inversion
python> link> range () / xrange ()
String manipulation in python
[Python] Multi-line string assignment
Python string manipulation master
[Python2] Date string-> UnixTime-> Date string
Random string generation (Python)
Python3> documentation string / docstring
Python string processing illustration
python> Link> PyUserInput package |
Remove double-byte spaces before and after the character string (python)