【pyhon】txt文件按行去重
import os, os.path, sysimport numpy as np#读取文件,去重def uni(filename): #默认txt文件 file = open(add+filename+'.txt') f = file.readlines() for i in range(len(f)): f[i] = f[i].strip(...