操作文件和目录解答

#coding:utf-8 import os abs = os.path.abspath('.') def Output_dir(path = abs): for file in os.listdir(path): file_path = os.path.join(pat...

2017-12-08 10:24:04

阅读数 36

评论数 0

手写朴素贝叶斯文本分类

def get_traindata(): #输出总的文本矩阵,文本向量,词典 folder_path = ('F:/train_data') folder_list = os.listdir(folder_path) sum_list = [] corpus =...

2017-12-01 19:29:28

阅读数 59

评论数 0

提示
确定要删除当前文章?
取消 删除