Python批量合併多個txt文件

# -*- coding:utf-8 -*- #os模塊中包含不少操做文件和目錄的函數 import os #獲取目標文件夾的路徑 meragefiledir = os.getcwd()+'\\MerageFiles' #獲取當前文件夾中的文件名稱列表 filenames=os.listdir(meragefiledir) #打開當前目錄下的result.txt文件,若是沒有
相關文章
相關標籤/搜索