#列表转字符串(只有字符串): 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
今日推荐
周排行