# -*--coding:utf-8*-
import os
import sys
import string
FindPath="file" #指定文件名file
filenames=os.listdir(FindPath)
corpus = []
for name in filenames:
filePath=os.path.join(FindPath,name)
# print(filePath) #files\1.txt
f=open(filePath,'r+')
content=f.read().decode("utf-8")
f.close()
corpus.append(content)
# print content #输出1.txt的内容