Use zip and for-loop
Example:
a = ["a", "b", "c"]
b = [1, 2, 3]
for e1, e2 in zip(a, b):
print(e1, e2)
Output:
a 1
b 2
c 3
© 版权声明
THE END
Use zip and for-loop
Example:
a = ["a", "b", "c"]
b = [1, 2, 3]
for e1, e2 in zip(a, b):
print(e1, e2)
Output:
a 1
b 2
c 3
暂无评论内容