*:
In [2]: lis=[[1, 2, 3], [4, 5, 6], [7, 8, 9]]In [3]: zip(*lis)Out[3]: [(1, 4, 7), (2, 5, 8), (3, 6, 9)]
欢迎分享,转载请注明来源:内存溢出
*:
In [2]: lis=[[1, 2, 3], [4, 5, 6], [7, 8, 9]]In [3]: zip(*lis)Out[3]: [(1, 4, 7), (2, 5, 8), (3, 6, 9)]
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)