1 a = range(3)
2 b = range(3)
3 [ (x, y) for x, y in zip(a, b) ]

 

结果:

1 [ (0,0), (1,1), (2,2) ]

 

当然,如上可以推广到多个列表。

 

相关文章: