공공기관2 작업 중. _temp 몽타주(재생성가능)는 제외. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
18 lines
620 B
Python
18 lines
620 B
Python
# -*- coding: utf-8 -*-
|
|
import openpyxl, sys
|
|
sys.stdout.reconfigure(encoding='utf-8')
|
|
wb = openpyxl.load_workbook('전북특별자치도_김제시.xlsx')
|
|
ws = wb.active
|
|
print('dims', ws.max_row, ws.max_column)
|
|
# header
|
|
print('HEADER:', [ws.cell(1, c).value for c in range(1, ws.max_column + 1)])
|
|
print('---- rows 14..30 ----')
|
|
for r in range(14, min(31, ws.max_row + 1)):
|
|
vals = [ws.cell(r, c).value for c in range(1, ws.max_column + 1)]
|
|
# find hyperlink in K (col 11)
|
|
link = None
|
|
cellK = ws.cell(r, 11)
|
|
if cellK.hyperlink:
|
|
link = cellK.hyperlink.target
|
|
print(r, vals, '| K-link:', link)
|