首页 > 技术文章 > AttributeError: 'str' object has no attribute 'decode'

xiaodai0 2019-03-20 13:51 原文

错误代码:

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

 

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

推荐阅读