Painting Blue Code
Simple, self-explanatory code snippets.
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
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment