import requests url = "https://aip.baidubce.com/oauth/2.0/token" data = { ‘grant_type‘:‘client_credentials‘, ‘client_id‘:API Key, ‘client_secret‘:Secret Key,} response = requests.post(url=url,data=data)print(response.text)
原文地址:https://www.cnblogs.com/qiaoer1993/p/10990584.html
时间: 2024-10-08 22:42:37