Pythonfor循环中的zip
s = ["1", "2", "3", "4", "5"]
t = ["a", "b", "c", "d", "e"]
for x, y in zip(s, t):
print(x+"-"+y)
120dj绿叶对根的情意歌词print(">#")
u = {"1", "2", "3", "4", "5"}
郭美美mvv = {"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
本文发布于:2024-10-23 22:37:35,感谢您对本站的认可!
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
- 上一篇: 高一年级信息科技等级考试模拟题【全A计划】答案
- 下一篇: pythonzip()函数的使用
发布评论