XLSXWriter:向图像添加超链接?
XLSXWriter: Add Hyperlink to Image?
我想使用 XLSXWriter 添加到图像的超链接。但是,XLSXWriter 文档位于:
https://xlsxwriter.readthedocs.io/example_images.html
...不要提及超链接。
有没有办法通过 XLSXWriter 为图像添加超链接?
Is there a way to add a hyperlink to an image via XLSXWriter?
是的。请参阅 insert_image():
上的文档
url
参数可以用来给图片添加一个hyperlink/url...:[=19=]
worksheet.insert_image('B4', 'python.png', {'url': 'https://python.org'})
我想使用 XLSXWriter 添加到图像的超链接。但是,XLSXWriter 文档位于:
https://xlsxwriter.readthedocs.io/example_images.html
...不要提及超链接。
有没有办法通过 XLSXWriter 为图像添加超链接?
Is there a way to add a hyperlink to an image via XLSXWriter?
是的。请参阅 insert_image():
上的文档url
参数可以用来给图片添加一个hyperlink/url...:[=19=]
worksheet.insert_image('B4', 'python.png', {'url': 'https://python.org'})