for web in web_list:
for j in range(2,9):
pic_web = 'https://www.jj20.com/mx/dalu/nan/baijingting/2386'+ str(i) +'_' +str(j) +'.html'
response = requests.get(pic_web,headers=headers)
html = response.text
picture = re.findall('<img id="bigImg" src="(.*?)" alt=".*?">', html)
picture = 'https:' + ''.join(picture)
print(picture)
file_name = picture.split('/')[-1]
print(file_name)
with open(r'E:\pycharm\第一个库\爬虫\白敬亭'+ '/' + file_name,'wb') as f:
f.write(picture.content)
一直显示AttributeError: 'str' object has no attribute 'content'