Python合并多个TXT文件
import pandas as pdimport ospath = r"D:\pythonstudy\01_基础学习\TXT"files = os.listdir(path)txts = pd.DataFrame()for file in files: position = path + os.sep + file print(position) data = pd.read_csv(position, sep='\\s+') txts = pd.c