【发布时间】:2016-10-16 04:15:42
【问题描述】:
我目前有一个这样的列表:
[3, 4, ['x', 'y', 'z'], 5]
并且想去
[3, 4, 'x', 'y', 'z', 5]
这方面的新手,尝试四处寻找,但找不到任何我能理解的东西。
【问题讨论】:
-
只需谷歌
flatten list of lists in python。绝对是重复的。 -
为什么您尝试解决它没有成功?也许我们可以提供帮助。
标签: python arrays list python-3.x data-structures