Please refresh the page if equations are not rendered correctly.
---------------------------------------------------------------
代码
from openpyxl import Workbook
from openpyxl.drawing.image import Image
wb=Workbook()
ws=wb.active
ws["A1"]="You should see three logos below"
img = Image('logo.png')
ws.add_image(img, 'A2')
wb.save('logo.xlsx')
图片资源
将下面的图片另存为logo.png
用于代码测试:
Comments NOTHING