参考:
【python】正则表达式,提取句子开头两个字
---------------------------------------------------------------------------
>>> end = re.compile(r'[\u4e00-\u9fa5].$')
>>> start = re.compile(r'^[\u4e00-\u9fa5].')
>>> with open('E:/000.txt','r')as f:
... for line in f:
... s = start.search(line)
... e = end.search(line)
... print(s&e)
...
Traceback (most recent call last):
File "<stdin>", line 5, in