detrail the trailing space in print statement
June Kim
junaftnoon at nospamplzyahoo.com
Sat Oct 21 17:09:12 EDT 2000
for i in (a list of a huge size):
do something quite complex
print f(i),
do something else
In this code, what I really want to do is printing out "f(i)"
as a stream. I can remove the newline character by
adding a comma but cannot remove the trailing space
which is automatically inserted at the end of the object.
(adding up the f(i) objects in the loop, and outputting
the whole stuff in one string out of the loop sounds not
very good, 'cuz it will take up a large size of memory)
Any comments?
More information about the Python-list
mailing list