urls = ['http://bj.xiaozhu.com/search-duanzufang-p{}-0/'.format(number) for number in range(1,14)] #构造出13页URL的列表数据
for url in urls:
print(url)
本站文章如无特殊说明,均为本站原创,如若转载,请注明出处:网络爬虫构造出URL的列表数据 - Python技术站
urls = ['http://bj.xiaozhu.com/search-duanzufang-p{}-0/'.format(number) for number in range(1,14)] #构造出13页URL的列表数据
for url in urls:
print(url)
本站文章如无特殊说明,均为本站原创,如若转载,请注明出处:网络爬虫构造出URL的列表数据 - Python技术站