Python解决中文字符的问题

from __future__ import unicode_literals


print(type("test")) #<type 'unicode'>

Chinatest="测试"

print(Chinatest[1:2]) #输出“试”

posted @ 2015-11-04 12:59  HaichaoON  阅读(283)  评论(0编辑  收藏  举报