有一张单子:
[[['Adrey'], [25], ['engineer'], ['SDI'], ['toyota']],
[['Sasha'], [20], ['student'], ['MVI'], ['mers']]]
您需要像这里一样删除额外的括号
['Adrey', 25, 'engineer', 'SDI', 'toyota'],
['Sasha', 20, 'student', 'MVI', 'mers']
有一张单子:
[[['Adrey'], [25], ['engineer'], ['SDI'], ['toyota']],
[['Sasha'], [20], ['student'], ['MVI'], ['mers']]]
您需要像这里一样删除额外的括号
['Adrey', 25, 'engineer', 'SDI', 'toyota'],
['Sasha', 20, 'student', 'MVI', 'mers']
您可以使用该模块
itertools
:结论: