# -*- coding: utf-8 -*-
import sys, io, openpyxl
from openpyxl.styles import PatternFill
sys.stdout = io.TextIOWrapper(sys.stdout.buffer, encoding='utf-8')
P=r'3.한국의약품안전관리원/한국의약품안전관리원.xlsx'
TABM={15:2,35:5,40:5,41:4,42:2,82:3,84:4,85:4}
wb=openpyxl.load_workbook(P); ws=wb.active
blue=PatternFill(fill_type='solid', fgColor='FFBDD7EE', bgColor='FFBDD7EE')
for r,m in TABM.items():
    ws.cell(r,13).value=m
    ws.cell(r,13).fill=blue
wb.save(P)
print('applied tab M to', list(TABM.keys()))
