pip install --user -i https://pypi.tuna.tsinghua.edu.cn/simple/ docx2pdf 注意doc2pdf前面为空格
from docx2pdf import convert import os
director rD:\DOC FileList map(lambda x: director \\ x, os.listdir(D:\DOC)) for file in FileList: convert(file, …
from docx import Document
from docx.enum.text import WD_PARAGRAPH_ALIGNMENT
from docx.shared import Cm,Pt
from docx.oxml.ns import qndocument Document(2.docx)#读取文档的第一个表格数据
tables document.tables[0]#在第该表格3行1列的单元格内输入“能几日又中秋…