'str' object has no attribute 'get' 错误解决方案

我在使用python写爬虫时用到了requests.get()方法:python def openUrl(url, ip, agent): #函数形参为url:网页地址; ip:ip池; agent:User-Agent, 三者均为字符串类型 requests.get(url, headers=agent, proxies=ip) 疑惑的是,使用时报了 ‘str’ object has no
相关文章
相关标签/搜索