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:
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:
本文标题:Python 同时枚举两个 list
本文链接:https://www.haomeiwen.com/subject/gumcuktx.html
网友评论