📜  python zip 函数 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:41.694000             🧑  作者: Mango

代码示例2
first_name = ['John', 'James', 'Jennifer']
last_name  = ['Doe', 'Bond', 'Smith']
 
students = zip(first_name, last_name)
 
print(list(students))
 
# Output:
# [('John', 'Doe'), ('James', 'Bond'), ('Jennifer', 'Smith')]