AttributeError: 'str' object has no attribute 'decode'

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了AttributeError: 'str' object has no attribute 'decode'相关的知识,希望对你有一定的参考价值。

?????????decode   errors   ??????   ??????   ??????   str   python   line   sele   

??????: python  manage.py makemigrations

 

 

????????????:
??????????????????

 

 

?????????????????????line146??????query = query.encode(errors=???replace???)

??????????????????decode??????encode?????????


以上是关于AttributeError: 'str' object has no attribute 'decode'的主要内容,如果未能解决你的问题,请参考以下文章

解决编码问题:AttributeError: 'str' object has no attribute 'decode'

我遇到错误:AttributeError:'str'对象没有属性'isfloat'

tkinter:AttributeError:'str'对象没有属性'tk'

AttributeError: 'str' object has no attribute 'decode'

sklearn使用FeatureHasher处理字符串特征: AttributeError: ‘str‘ object has no attribute ‘items‘

解决 AttributeError: 'str' object has no attribute 'read'