解决AttributeError: 'str' object has no attribute 'decode'报错问题
生活随笔
收集整理的這篇文章主要介紹了
解决AttributeError: 'str' object has no attribute 'decode'报错问题
小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
順著報(bào)錯(cuò)文件點(diǎn)進(jìn)去,找到query = query.decode(errors=‘replace’)
將decode修改為encode即可
總結(jié)
以上是生活随笔為你收集整理的解决AttributeError: 'str' object has no attribute 'decode'报错问题的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: python爬取微信运动_用 Pytho
- 下一篇: 5y计算机应用2010综合测评答案,计算