我想直接从列表推导中返回一个包含两个列表的交错元素的列表 - 而不使用下一步来展示结果.可能吗?
alist1_temp=[1, 4,2]
alist2_temp=[3, 7,4]
t=[[x,y] for x,y in zip(alist1_temp, alist2_temp)]
Run Code Online (Sandbox Code Playgroud)
返回 [[1, 3], [4, 7],[2, 4]]
但是我怎样才能直接从列表理解中获得[1, 3, 4, 7, 2, 4]?