pathon连接mysql->AttributeError: 'str' object has no attribute 'decode'

修改安装python目录下的 operations.py。
把其中的 
query = query.decode(errors='replace')
修改为
query = query.encode(errors='replace')

posted @ 2019-07-05 10:37  sdc123520  阅读(522)  评论(0编辑  收藏  举报