~~~ import requests headers = {"Authorization":"APPCODE 您的appcode"} #定义请求地址 host = ' http://stock.api51.cn ' #定义路径 path = '/trend' # 定义参数 querys = 'prod_code=000001.SS' url = host + path + '?' + querys datas = requests.get(url=url, headers=headers, timeout=15).content print(datas) ~~~