插入图片 openpyxl.drawing.image/sheet.add_image() import os os.chdir('D:\\python_major\\auto_office9') from openpyxl import load_workbook from openpyxl.drawing.image import Image workbook = load_workbook(filename = '这是一个表格.xlsx') sheet = workbook