()
获取百度 AI 开放平台的 access_token
    :return: access_token
获取百度 AI 开放平台的 access_token
    :return: access_token
获取百度 AI 开放平台的 access_token : return : access_token
def getAccessToken():
    '''
    获取百度 AI 开放平台的 access_token
    :return: access_token
    '''
    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())
        return response.json()['access_token']
def getAccessToken ( ) : 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 ( ) ) return response . json ( ) [ 'access_token' ]