python中list转字符串

命令:''.join(list)

其中,引号中是字符之间的分割符,如“,”,“;”,“\t”等等

如:

list = [1, 2, 3, 4, 5]

''.join(list) 结果即为:12345

','.join(list) 结果即为:1,2,3,4,5

posted @ 2017-06-09 17:31  鹄望  阅读(89544)  评论(0编辑  收藏  举报