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'