Files
_Geulbeot/02. Prompts/문서생성/codedomain/수식_자체가_Python_v01.py

17 lines
592 B
Python

def extract_raw_constants(file_path):
# 수식 자체가 아닌 입력된 값을 확인하기 위해 로드
print(f"로그: 파일을 읽는 중입니다...")
wb = openpyxl.load_workbook(file_path, data_only=False)
raw_data = []
for sheet_name in wb.sheetnames:
ws = wb[sheet_name]
print(f"\n" + "="*50)
print(f"▶ [ {sheet_name} ] 시트의 원천 데이터(상수) 추출 시작")
print("="*50)
for row in ws.iter_rows():
for cell in row:
value = cell.value
coord = cell.coordin