'''python
from openpyxl import Workbook
wbx = Workbook()
wsx=wbx.active
'''
一痛阻、單元格列寬老充、行高舰罚、隱藏列、行:
wsx.column_dimensions['數(shù)據(jù)列'].width=
wsx.row_dimensions[數(shù)據(jù)行].height=
wsx.column_dimensions['數(shù)據(jù)列'].hidde=1
wsx.row_dimensions[數(shù)據(jù)行].hidde=1
二没炒、單元格格式:
wsx.cell(row=行,column=列).number_format='General'
wsx.cell(row=行,column=列).number_format='yyyy-mm-dd'
三式镐、隱藏單元格:
wsx.auto_filter.ref = wsx.dimensions #整張表進(jìn)行自動篩選
ws.auto_filter.add_filter_column(0,["內(nèi)容"])? #設(shè)置第一列,list格式選擇要篩選的內(nèi)容