这是我的代码:
n = 2 campaign_img = soup.find('div', class_="campaign-img-contain") name= str(n) + '-' + campaign_name campaign_pic = request.urlretrieve(campaign_img.img['src'], folder + name + '.png') print(campaign_pic) n = n+1
我要这个:
2-campaign_name
3-campaign_name
4-campaign_name
结果: 类型错误:+ 不支持的操作数类型:'int' 和 'str'
请建议我最好的解决方案。谢谢
缥缈止盈
一只斗牛犬
慕婉清6462132
相关分类