How to convert \n and \t symbols to new lines and tabs?

AggieDan04 danb_83 at yahoo.com
Tue Apr 14 04:20:16 CEST 2009


On Apr 13, 6:30 pm, DSblizzard <dsblizz... at gmail.com> wrote:
> How to convert string with \n and \t symbols to natural string - with
> new lines and tabs?

'String with tab\\t and newline\\n'.decode('string-escape')



More information about the Python-list mailing list