Python3如何实现两个列表的交叉打印?
titlelist = ["T1","T2","T3"]
urlList = ["U1","U2","U3"]
for a,b in map(list,zip(titlelist,urlList)):
print(a)
print(b)
输出:
T1
U1
T2
U2
T3
U3
Copyright © 广州京杭网络科技有限公司 2005-2024 版权所有 粤ICP备16019765号