Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个像这样的python列表:
list = [] for loop list.append("blah")
我想做的是将这个列表转换为字符串,每个值用逗号分隔。
我该怎么做呢??
使用str.join方法:
str.join
','.join(your_list)