import os
root = '输入绝对路径'
file_names = os.listdir(root)
file_ob_list = []
for file_name in file_names:
fileob = root + '/' + file_name
file_ob_list.append(fileob)
import os
root = '输入绝对路径'
file_names = os.listdir(root)
file_ob_list = []
for file_name in file_names:
fileob = root + '/' + file_name
file_ob_list.append(fileob)
本文标题:Python批量读取文件
本文链接:https://www.haomeiwen.com/subject/khnflctx.html
网友评论