我需要发出 api 请求,我需要转换一个字符串,例如:"hello i am a special string + i contain special characters?"转换为请求格式,例如:"hello%20i%20am%20a%20special ... ecc"python 有一个库可以帮助我吗?这是我的代码:import http.clientconn = http.client.HTTPSConnection("address:port")conn.request(method="GET", url="/my/target/site?info1=this needs to be converted&info2=also this???", headers=headers)谢谢
添加回答
举报
0/150
提交
取消