错误:
AttributeError: 'set' object has no attribute 'items'
解决:
改成:headers = {'User-Agent':"User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.140 Safari/537.36 Edge/17.17134"}
AttributeError: 'set' object has no attribute 'items'
改成:headers = {'User-Agent':"User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.140 Safari/537.36 Edge/17.17134"}
本文标题:AttributeError
本文链接:https://www.haomeiwen.com/subject/wplspftx.html
网友评论