with可以自行釋放資源,因而打開圖片open()消耗的資源可以自行關閉,但是requests.get打開的stream,需要使用closing轉換成上下文對象,然后再釋放掉。不知道這樣理解對不對
2018-01-29
# 被玩壞了,最新結果如下:
{
"message": "Bad credentials",
"documentation_url": "https://developer.github.com/v3"
}
{
"message": "Bad credentials",
"documentation_url": "https://developer.github.com/v3"
}
2018-01-25
報錯了AttributeError: 'str' object has no attribute 'json'
2018-01-10