how to print without blank?

Ju Hui phpbird at gmail.com
Sun Apr 9 10:37:43 EDT 2006


thank you all. IT's very helpful to me.
>>> import sys
>>> def no_space_before(x):
...     sys.stdout.softspace = 0
...     return x
...
>>> for x in range(3):
...     print no_space_before(x),
...
012




More information about the Python-list mailing list