Session.send()的問題
win10 + py3.5 +requests-2.12.2+pycharm(之前的實例沒什么問題)
就這句有警告 ? resp = s.send(prepped, timeout=5)
pycharm里面有提示
? ? ? ?This inspection reports discrepancies between declared parameters and ? ? ?actual arguments, as well as incorrect arguments (e.g. duplicate named ? ? ?arguments) and incorrect argument order. Decorators are analyzed, too. ? ??
??
運行后:
? File "D:/Pycharm project/python_程序開發指南/test1.py", line 56, in hard_request
? ? resp = s.send(prepped, timeout=5)
TypeError: send() missing 1 required positional argument: 'request'
2019-03-01
Session.send(self, request, kwargs)
缺少request參數
2016-12-03
s 對象對不對??茨愕腻e誤提示:參數錯誤