为什么改成auto也不对,都写上也不对,这里data的参数应该怎么改呢
post 源码
def post(url, data=None, json=None, **kwargs):
r"""Sends a POST request.
:param url: URL for the new :class:`Request` object.
:param data: (optional) Dictionary, list of tuples, bytes, or file-like
object to send in the body of the :class:`Request`.
:param json: (optional) json data to send in the body of the :class:`Request`.
:param \*\*kwargs: Optional arguments that ``request`` takes.
:return: :class:`Response <Response>` object
:rtype: requests.Response
"""
post的第二个参数就是data且是实参, 所以你的API_ENDPOINR就是data 把他干掉就行 你要传其他参数用key=value