## 将所有文件合并??
### 其实如果有git-bash或Ubuntu for windows,在对应目录下直接 运行 `cat *.txt > join.txt`就行了
#
import os
def file_join(outpath,indir='.'):
with open(outpath,"a",encoding="utf-8") as outpf:
for i in os.listdir(indir):
with open(os.path.join(indir,i),"r",encoding="utf-8") as inf:
lines=inf.readlines()
for line in lines:
outpf.write(line+"\n")
file_join('tmp.txt','tmp')