01 列表中整形转成字符串 通过join拼接

nums = [11,22,33,44]
for i in range(0,len(nums)):
nums[i] = str(nums[i])
resutl = '_'.join(nums)
print(resutl)

1. "".jon([元素必须是字符串,元素必须是字符串,])

posted @ 2024-09-25 20:56  jhchena  阅读(3)  评论(0编辑  收藏  举报