摘要:
import os from docx import Document from docx.shared import Inches # 定义你想要遍历的文件夹路径 folder_path = 'C:/Users/Administrator/Desktop/东3' # 遍历文件夹中的所有子文件夹 f 阅读全文
posted @ 2023-09-20 13:39
dafengchui
阅读(30)
评论(0)
推荐(0)
摘要:
import os # 读取 txt 文件 with open('D:\\test\\new11.txt', 'r', encoding='utf-8') as f: lines = f.readlines() # 遍历每一行文字,生成对应的文件夹 for line in lines: folder 阅读全文
posted @ 2023-09-20 13:37
dafengchui
阅读(18)
评论(0)
推荐(0)

浙公网安备 33010602011771号