from openpyxl import load_workbook
from openpyxl_image_loader import SheetImageLoader
workbook = load_workbook(filename="《涡轴发动机原理》抽考试题库-2021-2022-1.xlsx")
ws = workbook[workbook.sheetnames[4]]
image_loader = SheetImageLoader(ws)
rows = ws.max_row
image = image_loader.get('D2')#加载D列的图片
image.show()
image.save("11111111111111.png")
读取excel指定表格的图片保存在本地
最新推荐文章于 2024-03-01 00:25:08 发布