通过使用''.join
list1 = ['1', '2', '3']
str1 = ''.join(list1)
或者,如果列表是整数,则在连接元素之前将其转换。
list1 = [1, 2, 3]
str1 = ''.join(str(e) for e in list1)
>>> L = [1,2,3]
>>> " ".join(str(x) for x in L)
'1 2 3'
L = ['L','O','L']
makeitastring = ''.join(map(str, L))