weixin_39835147的博客# How to insert hyperlinks into an existing MS Word document using win32com:# Use the same call as in the example above to connect to Word:wordapp = win32com.client.Dispatch("Word.Application")# Open ...
weixin_39846186的博客是的,我们能做到。Referenceimport docxfrom docx.enum.dml import MSO_THEME_COLOR_INDEXdef add_hyperlink(paragraph, text, url):# This gets access to the document.xml.rels file and gets a new relation id...