标签:blog http io ar os for on div 2014
#coding:utf-8 ‘‘‘主要是unichr()函数。以下数组中的元素转换后为繁体中文,若不加encode("GB18030")就不能正确显示,而且会报错:(‘gbk‘ codec can‘t encode character u‘\ue5fa‘ in position 0:illegal multibyte sequence)‘‘‘ str1=[58874,12417,58859,12417,58896,57809] for x in str1: print unichr(x).encode("GB18030"),
标签:blog http io ar os for on div 2014
原文地址:http://www.cnblogs.com/jhcla/p/4145206.html