阅读背景:

处理python字符串中的中文字符_weixin_30278237的博客

来源:互联网 
# -*- coding:utf-8 -*-
import sys,os
txta = open('a.txt','r')
str = ''
for line in txta:
    str += line.strip().decode('utf-8')
txta.close()
for word in str:
    print word.encode('utf-8')
# -*- coding:utf-8 -*-
import sys,os
t



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: