互聯(lián)網(wǎng)運(yùn)營(yíng)項(xiàng)目實(shí)戰(zhàn)班
url_map = {k: index for index, k in enumerate(urls)}for item in data_list:
? ?url = item['url']
? ?html = item['html']
? ?html_list.insert(url_map[url], html)
? ?url_list.insert(url_map[url], url)print(html_list)print(url_list)
標(biāo)簽: