数据集

This commit is contained in:
XM-GO
2023-05-12 17:21:17 +08:00
parent 93fbf456d8
commit c7cd18131d
5 changed files with 104 additions and 61 deletions

View File

@@ -15,7 +15,6 @@ func ReadExcel(filename string) ([]string, []map[string]interface{}) {
}
sheets := f.GetSheetMap()
sheet1 := sheets[1]
fmt.Println("第一个工作表", sheet1)
rows, err := f.GetRows(sheet1)
cols := make([]string, 0)
isHead := true
@@ -28,7 +27,6 @@ func ReadExcel(filename string) ([]string, []map[string]interface{}) {
cols = append(cols, colCell)
}
isHead = false
fmt.Println("列信息", cols)
} else {
theRow := map[string]interface{}{}
for j, colCell := range row {