📜  python 将逗号添加到列表 - Python 代码示例

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

代码示例1
Use str. join() to make a list into a comma-separated string

a_list = ["a", "b", "c"]
joined_string = ",". join(a_list) Concatenate elements of `a_list` delimited by `","`
print(joined_string)