为了账号安全,请及时绑定邮箱和手机立即绑定

Python-走进Requests库

飞雀 全栈工程师
难度中级
时长 2小时47分
学习人数
综合评分9.60
60人评价 查看评价
9.7 内容实用
9.5 简洁易懂
9.6 逻辑清晰
@qq_爱在今天_0
是你代码写错了,emails不是email
# 被玩坏了,最新结果如下:
{
"message": "Bad credentials",
"documentation_url": "https://developer.github.com/v3"
}

最赞回答 / naiv_monster
你可以把json.dumps去掉试一试,一样可以输出,但是就不如老师那样结果打印出来更美观,方便看
这个json()有什么用
报错了AttributeError: 'str' object has no attribute 'json'
飞雀老师讲的好!不拖沓,都是知识点。课后的分享很受用!

最新回答 / cikewang
你的邮箱是不是没有验证
感谢老师,看完收获很大,感觉老师就像一位武林高手一样,深不可测

最新回答 / 柿饼小星
pip install gunicorn   或者使用国内源pip install -i https://pypi.mirrors.ustc.edu.cn/simple/  gunicorn
with as
等同于
try:
fd = open(filename, 'wb')
fd.write(chunk)
except:
pass
finally:
fd.close()
输入pip install gunicore httpbin命令行之后,会出现:Could not find a version that satisfies the requirement gunicore (from versions: )
No matching distribution found for gunicore
解决:pip install httpbin
在下载过程中会发现存在“Collecting Gunicorn (from Flask-Common->httpbin)”
Command "python setup.py egg_info" failed with error code 1 in ~\appdata\local\temp\pip-build-k9xaoc\meinheld\
beautiful is better than ugly !
课程须知
1. 了解基本python语法 2. 知道如何搭建python开发环境
老师告诉你能学到什么?
1. HTTP基本原理,客户端和服务端的通信机制 2. 通过Requests库构建⼀一个完整请求 3. 通过Requests库获取和处理响应 4. 能够使⽤Requests库和Github API进⾏行数据交互 5. 深度理解Restful API的含义

微信扫码,参与3人拼团

意见反馈 帮助中心 APP下载
官方微信
友情提示:

您好,此课程属于迁移课程,您已购买该课程,无需重复购买,感谢您对慕课网的支持!

本次提问将花费2个积分

你的积分不足,无法发表

为什么扣积分?

本次提问将花费2个积分

继续发表请点击 "确定"

为什么扣积分?

举报

0/150
提交
取消