如何按行拆分列表列表?
list = [['a', 'b', 'c'], ['d', 'e', 'f'], ['g', 'h', 'i']]
进入:
a b c
d e f
g h i
最佳答案
In [11]: lst = [['a', 'b', 'c'], ['d', 'e', 'f'], ['g', 'h', 'i']]
In [12]: print('\n'.join(' '.join(l) for l in lst))
a b c
d e f
g h i
关于python - 拆分列表列表,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10335537/