import http.client conn = http.client.HTTPSConnection("gw.wxdata.meishr.com") payload = "secret=您的密钥&参数=值..." headers = { "Content-Type":"application/x-www-form-urlencoded;charset:utf-8;" } conn.request("POST","/api/ocr/qrcode", payload, headers) res = conn.getresponse() data = res.read() print(data.decode("utf-8"))