Pywin print w/o linefeed?

Wojtek Walczak gminick at hacker.pl
Wed Jan 22 14:48:27 CET 2003


Dnia 21 Jan 2003 20:09:45 GMT, Spencer Ernest Doidge napisał(a):
>>>> def go():
>         print 'hello world'
>         print 'goodbye world'
> 
>>>> go()
> hello world
> goodbye world
> 
> Is there some way to make Python print a string without the linefeed
> at the end? If there were <some instruction> to do that, then I could
> do this:


print 'string',
              ^
          that comma should help

-- 
[ ] gminick (at) underground.org.pl  http://gminick.linuxsecurity.pl/ [ ]
[ "Po prostu lubie poranna samotnosc, bo wtedy kawa smakuje najlepiej." ]




More information about the Python-list mailing list