From: Kevin B. <kb...@ca...> - 2002-03-21 02:06:23
|
Ale...@di... wrote: >This is probably more of a python question, but I am really puzzled... > >How can I use "print" without getting the newline added after each item I >am printing.. I mean that I ended up doing it with System.out.print >("afadfa")... but it seems far from obvious to me.. I checked the >documentation for python, and I coldn't find it right off the bat.. > print "asdf", but that does add a space - if that isn't acceptable, sys.stdout.write(): >>> print "asdf",;print "zxcv" asdf zxcv >>> sys.stdout.write( "asdf" );print "zxcv" asdfzxcv kb |