Python urllib2: HTTP 400 error
发布网友
发布时间:2022-04-27 08:59
我来回答
共1个回答
热心网友
时间:2023-09-16 02:32
你好:
请问你确定是:{"result":200,"sentence_link_id":28114393,"slang":true,"sentence_teach_uid":0,"msg":"OK","sentence_resp":"好久不见","emotion":null}
我在浏览器里面输入地址,结果是:
{"result":400,"msg":"Failed to convert value of type 'java.lang.String' to required type 'long'; nested exception is java.lang.NumberFormatException: For input string: \"\""}追问
在浏览器里输入正常(当然,这个sentence_resp不是固定的)。但python程序读取不对
追答
我的是: