我是靠谱客的博主 忧郁红牛,这篇文章主要介绍AttributeError: 'str' object has no attribute 'decode' AttributeError: 'str' object has no attribute 'decode' ,现在分享给大家,希望可以做个参考。

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

错误代码:

name = student['name'].decode("gbk")

 

解决办法:把后面的   .decode("gbk")    删除即可

posted @ 2019-03-20 13:51 小呆丶 阅读( ...) 评论( ...) 编辑 收藏

最后

以上就是忧郁红牛最近收集整理的关于AttributeError: 'str' object has no attribute 'decode' AttributeError: 'str' object has no attribute 'decode' 的全部内容,更多相关AttributeError:内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(96)

评论列表共有 0 条评论

立即
投稿
返回
顶部