感觉这一节使用requests模块,带参数的那个例子写错了.应该是
URL_GET = 'http://httpbin.org/get'
response = requests.get(URL_GET, params=params)
URL_GET = 'http://httpbin.org/get'
response = requests.get(URL_GET, params=params)
2018-07-18
User-Agent': 'python-requests/2.19.1', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'Authorization': 'Basic aW1vb2NkZW1vOmltb29jZGVtbzEyMw=='}
{"blog": "http://2333.org", "bio": "future is now", "name": "babyang12231le"}
200
https://api.github.com/user
不修改邮箱 其他都OK
{"blog": "http://2333.org", "bio": "future is now", "name": "babyang12231le"}
200
https://api.github.com/user
不修改邮箱 其他都OK
2018-07-01
作为一名程序员,一个基本的素养是要主动学习,遇到不懂的或者老师讲得不清楚的,应该自己自己去百度或者谷歌,而不是在这里抱怨老师这个没讲过,那个讲得不好什么的。
2018-03-20