我的代码中的方法='POST'时出现属性错误urllib.request.request在
我已经尝试了不同的语法:
POST = 'post'
method = POST
method = 'POST'
还有其他。。。在
^{pr2}$错误输出为:
Traceback (most recent call last):
File ".\checker netflix.py", line 44, in <module>
checkPassword(email,password)
File ".\checker netflix.py", line 23, in checkPassword
method = POST)
File "C:\Users\Naylor\AppData\Local\Programs\Python\Python37-32\lib\urllib\request.py", line 334, in __init__
for key, value in headers.items():
AttributeError: 'set' object has no attribute 'items'
我希望请求成功并解析服务器响应,以查看数据的参数是否通过或被拒绝
您传递的标头是一个包含字符串的集合:
而不是字典:
^{pr2}$相关问题 更多 >
编程相关推荐