标签:passwd pen ack nec pass file utf-8 编码 root
读写utf-8文件
fh = open(file_name, ‘r‘, encoding = ‘UTF-8‘)
读写数据库utf-8格式
connect = pymysql.connect(host=‘127.0.0.1‘, user=‘root‘, passwd=‘123456‘, db=‘code_bank‘, charset=‘utf8‘)
标签:passwd pen ack nec pass file utf-8 编码 root
原文地址:http://www.cnblogs.com/hushaojun/p/6229362.html