image_del.py--------------------
from os import remove
import openpyxl
import string
file_path = ".\qtablewidgettoexcel.xlsx"
wb = openpyxl.load_workbook(file_path)
ws = wb['Sheet1']
del ws._images[:]
wb.save(file_path)
wb.close()
'컴퓨터 > Python' 카테고리의 다른 글
python class 이해 (0) | 2022.10.27 |
---|---|
python 기다리기 time.sleep 등 (0) | 2022.10.25 |
pyqt5 qtablewidget to excel (0) | 2022.10.21 |
python vba매크로 포함 파일 만들기 (0) | 2022.10.10 |
python 엑셀 확장자 xls to xlsx / xlsx to xls (0) | 2022.10.10 |