Urlopen未打开正确的u

2024-05-22 19:33:54 发布

您现在位置:Python中文网/ 问答频道 /正文

因为某种原因打电话的时候

url = urllib2.urlopen("https://gateway.oar.net/api/siteroles?contact_client_short_name=%s" %clientName)
url = json.loads(url.read())

被读取的url只是“https://gateway.oar.net/api/siteroles”,是否有其他url被切断的原因?当我在chrome中打开我想要的inputUrl时,响应是正确的,url是正确的。在

有什么建议吗?在

提前谢谢你

编辑: 我试着出版了(url.getcode())输出200


Tags: namehttpsclientapijsonurlnetcontact

热门问题