1
zwzmzd 2016-05-14 22:39:07 +08:00 via Android
看样子 503 页面在 urlopen 页面就报异常了,所以 response 没有得到赋值
换 requests 库试试,没记错的话应该可以 |
2
Slienc7 2016-05-14 22:42:09 +08:00 1
|
3
BOYPT 2016-05-14 22:47:39 +08:00
response = e
|
4
Cola90 OP solved !谢谢楼上各位!
|
5
YUX 2016-05-14 23:03:31 +08:00
r = requests.get('https://api.github.com/user')
r.status_code |