python3.6报错:AttributeError: 'str' object has no attribute 'decode'
2018-03-26 18:02
801 查看
错误源代码: class_list.append(folder.decode('utf-8')) ;修改方法:把decode改为encode即可。
相关文章推荐
- python机器学习实战3.2提示错误AttributeError: type object 'str' has no attribute '_name_'
- Python3.6 下yield的常见错误(AttributeError: 'generator' object has no attribute 'next')
- 用python爬github上星级排名前列的项目报错AttributeError: 'NoneType' object has no attribute 'decode'
- python 提示错误AttributeError: type object 'str' has no attribute '_name_'
- python遇到AttributeError: 'str' object has no attribute '_getAssertEqualityFunc'问题解决过程
- Python脚本报错AttributeError: ‘module’ object has no attribute’xxx’解决方法
- Python脚本报错AttributeError: ‘module’ object has no attribute’xxx’解决方法
- Python: Attribute Error - 'NoneType' object has no attribute 'something'
- Python脚本报错AttributeError: ‘module’ object has no attribute’xxx’解决方法
- Python 使用sqlite3报错 AttributeError: 'module' object has no attribute 'connect'
- Python脚本报错AttributeError: ‘module’ object has no attribute’xxx’解决方法
- 解决python中问题AttributeError: 'collections.defaultdict' object has no attribute 'iteritems'
- Python脚本报错AttributeError: ‘module’ object has no attribute’xxx’解决方法
- python jieba 结巴分词报错 AttributeError: 'module' object has no attribute 'cut'
- [Python][转]Exception AttributeError: "'NoneType' object has no attribute
- python __def__ Exception AttributeError: "'NoneType' object has no attribute
- python运行不了 AttributeError: module object has no attribute getdefaultlocale
- python错误:AttributeError: 'module' object has no attribute 'setdefaultencoding'问题的解决方法
- Python Matplotlib AttributeError: 'module' object has no attribute 'popall'
- Python错误AttributeError: 'module' object has no attribute 'copy'