📦 Initialize Geulbeot structure and merge Prompts & test projects
This commit is contained in:
14
02. Prompts/문서생성/codedomain/수식을_가져오기_Python_v01.py
Normal file
14
02. Prompts/문서생성/codedomain/수식을_가져오기_Python_v01.py
Normal file
@@ -0,0 +1,14 @@
|
||||
def extract_excel_logic(file_path):
|
||||
# 1. 수식을 가져오기 위한 로드 (data_only=False)
|
||||
print(f"로그: 파일을 읽는 중입니다 (수식 모드)...")
|
||||
wb_formula = openpyxl.load_workbook(file_path, data_only=False)
|
||||
|
||||
# 2. 결과값을 가져오기 위한 로드 (data_only=True)
|
||||
print(f"로그: 파일을 읽는 중입니다 (데이터 모드)...")
|
||||
wb_value = openpyxl.load_workbook(file_path, data_only=True)
|
||||
|
||||
extraction_data = []
|
||||
|
||||
for sheet_name in wb_formula.sheetnames:
|
||||
ws_f = wb_formula[sheet_name]
|
||||
ws_v = wb_value[sheet_name]
|
||||
Reference in New Issue
Block a user