【Python】数字数组拼接为字符串

list = [1, 2, 3, 4]
list = ''.join(str(i) for i in list)
print(list)

 

posted @ 2022-11-28 15:24  淡怀  阅读(468)  评论(0编辑  收藏  举报