摘要:
#单个unicode字符串的长度为1, 单个utf-8字符的长度为3 In [3]: u = u"这是一个中文字符串"In [4]: len(u)Out[4]: 9In [5]: utf8str = u.encode("utf-8")In [6]: len(utf8str)Out[6]: 27... 阅读全文
posted @ 2012-03-11 16:32
samlee
阅读(2189)
评论(0)
推荐(0)

浙公网安备 33010602011771号