一、引入库 from pdf2docx import Converter 二、三行代码 cv = Converter("input.pdf") cv.convert("output.docx") cv.close()