摘要: 1、字符串编码设置 data = u'你好' utf8 = data.encode('utf-8') 2、管道编码设置 import locale import sys ###设置输出管道编码### text = u'pi:π' locale.setlocale(locale.LC_ALL, '') 阅读全文
posted @ 2016-03-09 22:34 记忆书签 阅读(885) 评论(0) 推荐(0) 编辑