Artificial intelligent assistant

Border で上書きしても反映されない? import openpyxl as opx from openpyxl.styles import Border, Side wb = opx.Workbook() ws = wb.active side_medium = Side(border_style='medium', color='ff000000') side_dotted = Side(border_style='dotted', color='ff000000') side_thin = Side(border_style='thin', color='ff000000') cl = ws.cell(2,2) cl.border = cl.border + Border(top=side_medium, left=side_dotted, right=side_dotted, bottom=side_medium) cl.border = cl.border + Border(left=side_thin) wb.save(r'C:\Users\....\test.xlsx') "cl.border= " cell(2,2) "cl.border= " thin dotted



Border`+`Side
(`cl.border`)(`Border(left=side_thin)`)Side
`boder_style`(`cl.border`)


cl.border + Border(left=side_thin) # Sidesytle





Border(left=side_thin) + cl.border


`cl.border``StyleProxy`
`+``copy``Border`
`+`


from copy import copy
# ......
cl.border = Border(left=side_thin) + copy(cl.border)

xcX3v84RxoQ-4GxG32940ukFUIEgYdPy 3c16220dd46b90cd8fdb73ae96c782d9