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