您可以使用reduce实现无需numpy:
from functools import reduce
l = [[[1,2,3], 5, 47, 2515], [[4,5,6], 3, 35, 2096]]
res = reduce(lambda a, b: [*a, *b], [x[0] for x in l])
输出
[1, 2, 3, 4, 5, 6]
也许值得一提
[*a, *b]
是一种在python中连接列表的方法,例如:
[*[1, 2, 3], *[4, 5, 6]] # [1, 2, 3, 4, 5, 6]