list和''.join ¶ l = [] for i in range(10000): l.append(str(i)) s = ''.join(l) 推导式法 s = ''.join(str(i) for i in range(10000))