Please help on print string that contains 'tab' and 'newline'

Ned Batchelder ned at nedbatchelder.com
Sat Jan 27 16:20:32 EST 2018


On 1/27/18 3:15 PM, Jason Qian via Python-list wrote:
> HI
>
>     I am a string that contains \r\n\t
>
>     [Ljava.lang.Object; does not exist*\r\n\t*at com.livecluster.core.tasklet
>
>
>     I would like it print as :
>
> [Ljava.lang.Object; does not exist
>    tat com.livecluster.core.tasklet

It looks like you are doing something that is a little bit, and perhaps 
a lot, more complicated than printing a string.  Can you share the code 
that is trying to produce that output?

--Ned.



More information about the Python-list mailing list