python读取数据库数据有乱码怎么解决?

http://blog.sina.com.cn/s/blog_6826662b0100yeze.html

 

简单暴力,直接上代码

conn = MySQLdb.connect(host = "localhost",

                 user = "user",

                 passwd = "passwd",

                 db = "pythontest",

                 charset = "utf8")

posted @   Xander-Hang  阅读(269)  评论(0编辑  收藏  举报
努力加载评论中...
点击右上角即可分享
微信分享提示