不知道你想怎么处理那个嵌套的list?
l = [1,2,[3,4,5],'6','a',['b','c',7]]
newList = []
for item in l:
if type(item) == list:
tmp = ''
for i in item:
tmp +=str(i)+ ' '
newList.append(tmp)
else:
newList.append(item)
print(newList)
# [1, 2, '3 4 5 ', '6', 'a', 'b c 7 ']