python 把三个列表中的数值分别放到一个列表中

2025-04-13 10:44:58
推荐回答(1个)
回答(1):

使用 zip 函数,然后将 zip 函数返回的每个元素转 list。
L_merge = [list(i) for i in zip(L1, L2, L3)]