Add string to another string
Posted
by daemonfire300
on Stack Overflow
See other posts from Stack Overflow
or by daemonfire300
Published on 2010-06-16T14:30:19Z
Indexed on
2010/06/16
14:32 UTC
Read the original article
Hit count: 243
Hi there,
I currently encountered a problem: I want to handle adding strings to other strings very efficiently, so I looked up many methods and techniques, and I figured the "fastest" method. But I quite can not understand how it actually works:
def method6():
return ''.join([`num` for num in xrange(loop_count)])
From source (Method 6)
Especially the ([
numfor num in xrange(loop_count)])
confused me totally.
© Stack Overflow or respective owner