解決辦法. 來自:Efficient String Concatenation 方法1: def method1(): out_str = '' for num in xrange(loop_count): out_str += 'num' return out_str
確定! 回上一頁