def add(a,b): print(a+b) for a,b in zip([1,2,3],[4,5,6]): add(a,b) 输出结果: 57 9 for后面的变量和zip中的迭代器是一一对应的关系