import os
def read_file_dir():
for root,dirs,files in os.walk("./ner_data_2"):
for file in files:
file_path = os.path.join(root,file)
import os
def read_file_dir():
for root,dirs,files in os.walk("./ner_data_2"):
for file in files:
file_path = os.path.join(root,file)
本文标题:python遍历文件夹(os模块)读取文件夹里面的所有文件
本文链接:https://www.haomeiwen.com/subject/nfrpiftx.html
网友评论