forpageinrange(1,67):url_list='http://top.chinaz.com/hangye/index_news_{}.html'.format(page)#獲取列表頁鏈接#url_list1=url_list.split()print(type(url_list))print(url_list)輸出結果:http://top.chinaz.com/hangye/index_news_1.htmlhttp://top.chinaz.com/hangye/index_news_2.htmlhttp://top.chinaz.com/hangye/index_news_3.htmlhttp://top.chinaz.com/hangye/index_news_4.html...http://top.chinaz.com/hangye/index_news_67.html我把獲取到的鏈接,都賦給了url_list。打印一下url_list的內(nèi)容和類型。請問,怎么從url_list里把每一個鏈接單獨取出來?因為我后面需要把每個鏈接都單獨打開。
獲取到了67個列表頁,但是每個列表頁沒法單獨取出來?
Qyouu
2019-05-23 19:21:27