python中list转字符串

命令:''.join(list)

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

如:

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

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

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

原文地址:https://www.cnblogs.com/huwang-sun/p/6972990.html