self.auth = HTTPProxyAuth("XXX", "XXXX")
self.proxies = {"http": "XXXX:XXX"}
self.auth_1=HTTPProxyAuth("asdas", "te814")
self.proxies_1 = {"http": "123.249.90.19:888"}
self.auth_list={0:{self.auth:self.proxies_1},1:{self.auth_1:self.proxies_1}}
我这样写报错
File "/home/shenjianlin/my_project/qimingpian_person/
qimingpian_person.py", line 37, in __init__
self.auth_list={0:{self.auth:self.proxies_1},1:{self.auth_1:self.proxies_1}}
TypeError: unhashable type: 'HTTPProxyAuth'