找出文件中的中文

''' 检查文件中是否有中文,而且找出位置 ''' import re import sys m = re.compile(u'[\u4e00-\u9fa5]') # 返回的是list def readfile(filename): try: with open(filename,'r' ) as f: content = f.readline
相关文章
相关标签/搜索