a = dict(response.cookies) print(a)
用这个,直接dict就行。不可能再报错,除非你这个python跟requests不匹配,或者你get url的时候出错了。。。把整个报错发一下