join list of lists in python [duplicate] 列表包含列表 合并
·
x = [["a","b"], ["c"]]
result = []
[ result.extend(el) for el in x]
for el in result:
print el
参考
https://stackoverflow.com/questions/716477/join-list-of-lists-in-python
更多推荐
x = [["a","b"], ["c"]]
result = []
[ result.extend(el) for el in x]
for el in result:
print el
参考
https://stackoverflow.com/questions/716477/join-list-of-lists-in-python
更多推荐
所有评论(0)