Python解决中文字符的问题 from __future__ import unicode_literals print(type("test")) #<type 'unicode'> Chinatest="测试" print(Chinatest[1:2]) #输出“试”