python将当前目录下文件merge到一个文件

118 阅读1分钟
#不包含子目录
import os
import time


fl=os.listdir(".")
print("Here are the files in the current directory:")
print(fl)
print("Merge the files contents into out_merge.txt ....")
for i