需要把 10 万个短字符串拼成一个大字符串,推荐做法是?

Python

  1. A."".join(parts)
  2. B.循环 s += part 原地追加
  3. C.循环 s = s + part 逐个累加
  4. D.用 print 逐个输出