Skip to navigation
Recommended way to remove new lines characters \n from python string
13.01.16
mystring.rstrip('\r\n')
https://docs.python.org/3.4/library/stdtypes.html?highlight=rstrip#str.rstrip
Reply
Anonymous
Information Epoch 1740214664
Save trees.
Home
Notebook
Contact us