2015年9月28日

python字符编码的一些理解

摘要: #!/usr/bin/env python#coding:utf-8str = '中国'print type(str)print strstr = u'中国'print type(str)print strstr = '中国'.decode('UTF8')print type(str)print s... 阅读全文

posted @ 2015-09-28 23:28 ferraborghini 阅读(295) 评论(0) 推荐(0) 编辑

导航