python中有三个内建函数:列表,元组和字符串,他们之间的互相转换使用三个函数,str(),tuple()和list(),具体示例如下所示:>>>s="xxxxx"
>>>list(s)
['x','x','x','x','x']
>>>tuple(s)
('x','x','x','x','x')
>>>tuple(list(s))
('x','x','x','x','x')
>>>list(tuple(s))
['x','x','x','x','x']列表和元组转换为字符串则必须依靠join函数