40008错误代码?"Warning: wrong json format怎么回事?
data=urllib.parse.urlencode({
"touser" : "CenLiang",
"msgtype" : "text",
"agentid" : 1000003,
"text" : {
"content" : "我就试一下"
},
"safe":0
}).encode()
req=urllib.request.Request(url,method='POST')
res=urllib.request.urlopen(req,data).read().decode('utf-8')
print(res)
这段代码我直接从演示代码抄下来改了接收人,还有agentid