用字符串的 join 方法:


li = ['a', 'b', 'c', 'd']
s = ''.join(li)
print(s)


结果:abcd

 

用字符串的占位符替换


li = ['a', 'b', 'c', 'd'] s = '%s%s%s%s' % tuple(li) print(s)

结果:abcd