※ 将一个txt文档按\n格式分割成多个txt 原始文档格式为: # -*- coding: utf-8 -*- """ Created on Mon May 20 15:33:23 2019 @author: sun """ # 读取txt文件 import re text = open('聚类4类.txt',"r", encoding='UTF-8')