2015-07-13

PYTHON - How to most efficiently concatenate strings

from cStringIO import StringIO
string = StringIO()

string.write( 'First sentence.' )
string.write( 'Second string.' )
string.write( 'Thrid' )

print( string.getvalue() )

No comments:

Post a Comment