#!python
# encoding: utf-8

s = "哈哈"
ss = u'哈哈'

print s.decode('utf-8').encode('gbk')
print ss.encode('gbk')

 

黄聪:python控制台无法正常显示中文字符串解决方法

相关文章: