我是个纯小白。。。纯纯的那种
想试用百度云服务的图片清晰度增强功能,就自己研究。用Python获取access_token总是失败。代码是直接复制的百度的示例代码+自己的AK和SK:
# encoding:utf-8
import requests
# client_id 为官网获取的AK, client_secret 为官网获取的SK
host = 'https://aip.baidubce.com/oauth/2.0/token?grant_type=client_credentials&client_id=【官网获取的AK】&client_secret=【官网获取的SK】'
response = requests.get(host)
if response:
print(response.json())
但显示下面两个error
麻烦各位朋友帮帮忙。