下面的代码使用requests.request()方法应该如何改写?

img


上述代码使用requests.request()方法应该如何改写,求各位帮帮忙,提前感谢各位。

这样写,但是你的url本身就有问题打不开

img

img

import requests
sendinfo = {"cname": "python", "lb": "zyk"}
r = requests.request(method="post", url="http://httpbin.org/path", data=sendinfo)
print(r.text)