python list转字符换

来源:互联网 发布:mmd镜头数据怎么用 编辑:程序博客网 时间:2024/06/08 13:05

 

>>> s = ['a','b','c']
>>> s
['a', 'b', 'c']
>>> ''.join(s)
'abc'
>>> str = 'qwert'
>>> str
'qwert'
>>> str.join(['z','x','c'])
'zqwertxqwertc'
>>>