最贊回答 / NickChu
我也出現這個問題,解決方法是生成token,用token登錄。def request_method(): ????token = {"Authorization":"token place_your_token_here"} ????response = requests.get('https://api.github.com/user', headers = token) ????print better_print(response.text)使用訪問令牌而不是用用戶名和密碼的原因有兩個:通常放入了程...
2016-10-31