go新建读写操作excel文件代码
代码语言:golang
所属分类:其他
代码描述:go新建读写操作excel文件代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
package main import ( "log" "fmt" "github.com/360EntSecGroup-Skylar/excelize" ) func main() { //创建excel文件 xlsx := excelize.NewFile() //创建新表单 index := xlsx.NewSheet("成绩表") //写入数据 data := map[string]string{ //学科 "B1": "语文", "C1": "数学", "D1": "英语", "E1": "理综", //姓名 "A2": "啊俊", "A3": "小杰", "A4": "老王", //啊俊成绩 "B2": "112", "C2": "115", "D2": "128", "E2": "255", //小杰成绩 "B3": "100", "C3": "90", "D3": "110", "E3": "200", //老王成绩 "B4": "70", "C4": "140", "D4": "60&qu.........完整代码请登录后点击上方下载按钮下载查看
网友评论0