企业🤖AI Agent构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
~~~ #python3 如有疑问可与技术联系QQ:706448591 import requests #定义appcode headers = {"Authorization":"APPCODE 您的appcode"} #定义请求地址 host = 'http://shenfenzhe.market.alicloudapi.com/do' # 定义参数 # post参数 data= {'image':'http://storage.api51.cn/demo/zheng.jpg','id_card_side':'front'} # get参数 querys = 'prod_code=000001.SS' # 使用post请求 datas = requests.post(url=host , data=data,headers=headers, timeout=15).content # 使用get请求 datas = requests.get(url=host+ '?' + querys , headers=headers, timeout=15).content #输出结果 print(datas) ~~~