for zipcode in zipcodes:
for page in pages:
site = 'https://www.website.com/home?search=+zipcode&cursor=+page'
我希望它在哪里
site = 'https://www.website.com/home?search='+zipcode'&cursor='+page
但是它实际上不能在硒中起作用
答案 0 :(得分:2)
尝试
for zipcode in zipcodes:
for page in pages:
site = 'https://www.website.com/home?search={}&cursor={}'.format(zipcode,page)