a = [1, 2, 3] b = [5, 6, 7, 8] c = list(zip(a ,b)) print(c) # [(1, 5), (2, 6), (3, 7)] d1, d2 = zip(*c) print(d1, d2) # (1, 2, 3) (5, 6, 7) 1.zip() zip() 函数用于将可迭代的对象作为参数,将对象中对应的元素打包成一个个元组 python3返回的是一个对象 2.zip(*) 利用 * 号操作符,可以将元组解压为列表