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

錯誤代碼:spa

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

 

解決辦法:把後面的   .decode("gbk")    刪除便可code

相關文章
相關標籤/搜索