Python 同时for遍历多个列表2024-02-22 20:12:04 a = range(3) b = range(3) [ (x, y) for x, y in zip(a, b) ] 结果: [ (0,0), (1,1), (2,2) ] 当然,如上可以推广到多个列表。上一篇:Kickstart Round D 2017 problem A sightseeing 一道DP下一篇:js⑤