공공기관2 작업 중. _temp 몽타주(재생성가능)는 제외. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
16 lines
654 B
Python
16 lines
654 B
Python
import openpyxl, sys
|
|
sys.stdout.reconfigure(encoding='utf-8')
|
|
wb=openpyxl.load_workbook(r'충청남도_서천군.xlsx'); ws=wb.active
|
|
def full(r):
|
|
d={}
|
|
for c in range(2,19):
|
|
v=ws.cell(r,c).value
|
|
if v is not None: d[openpyxl.utils.get_column_letter(c)]=str(v)[:20]
|
|
cell=ws.cell(r,11); d['Klink']=cell.hyperlink.target[:50] if cell.hyperlink else ''
|
|
return d
|
|
print('R93',full(93)); print('R94',full(94)); print('R95',full(95))
|
|
print('R232',full(232)); print('R233',full(233)); print('R234',full(234))
|
|
# site rows N convention
|
|
for r in [3,13,24,62]:
|
|
print(f'site R{r}', {k:full(r).get(k) for k in ['F','L','M','N','O']})
|