Python 同时枚举两个 list
2020-09-26 本文已影响0人
夙小叶
截屏2020-09-26 下午2.00.18.png
links, titles = get_book_toc_url()
for i, (link, toc) in enumerate(zip(links, titles)):
get_index_content(raw=links[i], toc=titles[i])
for i, (x, y) in enumerate(zip(list1, list2)):
print(list1[i], list2[i])
From: