s = ["1", "2", "3", "4", "5"]
t = ["a", "b", "c", "d", "e"]
for x, y in zip(s, t):
print(x+"-"+y)
print("######")
u = {"1", "2", "3", "4", "5"}
v = {"a", "b", "c", "d", "e"}
for x, y in zip(u, v):
print(x+"-"+y)
输出:
1-a
2-b
3-c
4-d
5-e
######
1-e
2-c
4-d
5-a
3-b