zip函数接受任意多个(包括0个和1个)序列作为参数,返回一个包含元组的列表. x = [1, 2, 3] y = [4, 5, 6] z = [7, 8, 9] xyz = zip(x, y, z) print xyz #结果: [(1, 4, 7), (2, 5, 8), (3, 6, 9)] x = [1, 2, 3] y = [4, 5, 6, 7] xy = zip(x, y) print xy #结果: [(1, 4), (2, 5), (3, 6)] x = [1, 2, 3] x