37,700
社区成员




Python 2.7.3 (default, Apr 10 2012, 23:31:26) [MSC v.1500 32 bit (Intel)] on win32
Type "copyright", "credits" or "license()" for more information.
>>> str1 = 'a'
>>> str2 = ''
>>> for i in range(15):
str2 = ''.join((str2, str1))
>>> print str2
aaaaaaaaaaaaaaa
>>>
Python 2.7.3 (default, Apr 10 2012, 23:31:26) [MSC v.1500 32 bit (Intel)] on win32
Type "copyright", "credits" or "license()" for more information.
>>> str1 = 'a'
>>> str2 = ''
>>> for i in range(15):
str2 += str1
>>> print str2
aaaaaaaaaaaaaaa