当前位置 : 主页 > 编程语言 > python >

解决:AttributeError: module 'requests' has no attribute 'get'”

来源:互联网 收集:自由互联 发布时间:2022-07-05
今天学习Requests库,当用pip install requests安装后,写了一段代码报错:AttributeError: module 'requests' has no attribute 'get'” 后从​​https://www.zhihu.com/question/57011609​​得到答案,原来是我的代码

今天学习Requests库,当用pip install requests安装后,写了一段代码报错:AttributeError: module 'requests' has no attribute 'get'”

解决:AttributeError: module

解决:AttributeError: module

后从​​https://www.zhihu.com/question/57011609​​得到答案,原来是我的代码文件命名为requests.py 了。赶紧改了,发现ok:

解决:AttributeError: module


上一篇:Python爬虫之利用正则表达式爬取内涵吧
下一篇:没有了
网友评论