📌  相关文章
📜  如何将列表的元素写为字符串,在 python 中的元素之间使用逗号 - TypeScript 代码示例

📅  最后修改于: 2022-03-11 14:48:32.404000             🧑  作者: Mango

代码示例1
a_list = ["a", "b", "c"]
joined_string = ",". join(a_list) #Concatenate elements of `a_list` delimited by `","`
print(joined_string)
#output - a,b,c