Please help on print string that contains 'tab' and 'newline'
Jason Qian
jqian at tibco.com
Sun Jan 28 21:57:11 EST 2018
The message type is bytes, this may make different ?
print(type(message))
<class 'bytes'>
On Sun, Jan 28, 2018 at 8:41 PM, Steven D'Aprano <
steve+comp.lang.python at pearwood.info> wrote:
> On Sun, 28 Jan 2018 20:31:39 -0500, Jason Qian via Python-list wrote:
>
> > Thanks a lot :)
> >
> > os.write(1, message) works !
>
> I still do not believe that print(message) doesn't work. I can see no
> reason why you need to use os.write().
>
>
>
>
> --
> Steve
>
> --
> https://mail.python.org/mailman/listinfo/python-list
>
More information about the Python-list
mailing list