sgpyxl-openpyxl的接口-
概念
简化Excel文件(.xlsx)的典型操作
例子
import sgpyxl as xl
filepath = "example.xlsx"
wb = xl . SGBook ( filepath )
ws = wb . sheet ( "Sheet1" )
list1 = [ 1 , 2 , 3 ]
ws . write_col ( list1 , 2 , 2 )
list2 = []
list2 = ws . get_col ( 2 , 2 )
wb . save_and_close ()
2021-03-06 16:05:50
1KB
Python
1