【发布时间】:2012-07-19 10:13:22
【问题描述】:
可能重复:
Making a flat list out of list of lists in Python
Join a list of lists together into one list in Python
我有很多看起来像
的列表['it']
['was']
['annoying']
我希望上面看起来像
['it', 'was', 'annoying']
我如何做到这一点?
【问题讨论】:
-
这并不是真正的复制品。该问题是询问如何展平嵌套列表的列表。这个问题更加基础,只是询问如何连接各个列表。
-
@BrenBarn 这正是我要问的。