I am trying to add an hyperlink in a MS Word document using docx
module for Python.
I searched everywhere (official doc, StackOverflow, Google) but found nothing.
I would like to do something like:
from docx import Document
document = Document()
p = document.add_paragraph('A plain paragraph having some ')
p.add_hyperlink('Link to my site', target="http://supersitedelamortquitue.fr")
Anyone got an idea on how to do that?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…