标签: python清洗

后浪云Python教程:python清洗文件数据的方法

1、直接打开日志文件,往另外一个文件中按照要过滤的要求进行过滤。 import io; with open('a.txt', 'w') as f:   ……