亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定

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'


正在回答

2 回答

Session.send(self, request, kwargs)

缺少request參數

0 回復 有任何疑惑可以回復我~

s 對象對不對??茨愕腻e誤提示:參數錯誤

0 回復 有任何疑惑可以回復我~

舉報

0/150
提交
取消
Python-走進Requests庫
  • 參與學習       38700    人
  • 解答問題       114    個

python類庫中,requests是一件利器,想深入了解一起來學吧

進入課程

Session.send()的問題

我要回答 關注問題
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號