列表转字符

#列表转字符串(只有字符串):
li = ["ety", "xyz", "hello", "world"]
s = "".join(li)
print(s)


s = ",".join(a)
print(s)

'''
etyxyzhelloworld
ety,xyz,hello,world
'''

猜你喜欢

转载自www.cnblogs.com/Doner/p/12758081.html