【发布时间】:2020-09-30 08:05:45
【问题描述】:
我有一个包含多个列表的列表,我想将这些列表组合成一个字符串,这样我就可以使用 counter() 方法了。
示例列表
List1= [
['this is the first document',
'this document is the second document'],
['and this is the third one',
'is this the first document']]
需要输出 '这是第一个文档,这是第二个文档,这是第三个文档,这是第一个文档'
谢谢。
【问题讨论】:
标签: python-3.x list counter