How to only get \n for newline without the single quotes?
Peng Yu
pengyu.ut at gmail.com
Sat Feb 24 12:41:32 EST 2018
I would like to just get the escaped string without the single quotes.
Is there a way to do so? Thanks.
>>> x='\n'
>>> print repr(x)
'\n'
--
Regards,
Peng
More information about the Python-list
mailing list