📜  使用 zip() 的字典示例 - Python 代码示例

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

代码示例1
# example of using zip()

aa = [1, 2, 3, 4]
bb = ["a", "b", "c", "d"]
cc = [10, 20, 30, 40]

print(zip(aa, bb, cc))
# 

print( list(zip(aa, bb, cc)) )
# [(1, 'a', 10), (2, 'b', 20), (3, 'c', 30), (4, 'd', 40)]