'''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 #整張表進行自動篩選
ws.auto_filter.add_filter_column(0,["內容"])? #設置第一列,list格式選擇要篩選的內容