首页 > 代码库 > zip

zip

 

 

for m, n in zip(title_list, content_list): # 把标题和图片对个对应
print(‘正在下载>>>>>:‘ + m, n)




>>> a = [1,2,3,4,5]
>>> b = [‘aaa‘,‘bbb‘,‘ccc‘,‘ddd‘]
>>> c = [111,222,333,444]
>>> for i,j,k in zip(a,b,c):
... print(i,j,k)
...
1 aaa 111
2 bbb 222
3 ccc 333
4 ddd 444
>>>

zip