Python 批量保存word
from docx import Document path = r'D:\pywork\12' # word信息表所在文件夹 w = Document(path + '/' + 'word模板表.docx') #读取word for i in range(2,50): w.save(path + '/' + f'数量/第{i}个.docx') #在D:\pywork\12\数量处 保存为 ‘第x个.docx’
结果如图:
===今日我言===========
勇气 让人进步
===================