requests.post中沒有json參數吶 如何解決?是requests版本問題?
TypeError: request() got an unexpected keyword argument 'json'
>>> help(requests.post)
Help on function post in module requests.api:
post(url, data=None, **kwargs)
? ? Sends a POST request. Returns :class:`Response` object.
? ??
? ? :param url: URL for the new :class:`Request` object.
? ? :param data: (optional) Dictionary, bytes, or file-like object to send in the body of the :class:`Request`.
? ? :param \*\*kwargs: Optional arguments that ``request`` takes.
2017-01-01
趕集網
2016-11-17
那可能是你這個版本的問題.在data參數后面少個 json=none