当前位置: 首页 > news >正文

品牌设计内容包括哪些方面南阳seo优化

品牌设计内容包括哪些方面,南阳seo优化,南京做南京美容整形网站,上海商标设计Excelize 是 Go 语言编写的用于操作 Office Excel 文档基础库,基于 ECMA-376,ISO/IEC 29500 国际标准。可以使用它来读取、写入由 Microsoft Excel™ 2007 及以上版本创建的电子表格文档。支持 XLAM / XLSM / XLSX / XLTM / XLTX 等多种文档格式&#xf…

Excelize 是 Go 语言编写的用于操作 Office Excel 文档基础库,基于 ECMA-376,ISO/IEC 29500 国际标准。可以使用它来读取、写入由 Microsoft Excel™ 2007 及以上版本创建的电子表格文档。支持 XLAM / XLSM / XLSX / XLTM / XLTX 等多种文档格式,高度兼容带有样式、图片(表)、透视表、切片器等复杂组件的文档,并提供流式读写 API,用于处理包含大规模数据的工作簿。可应用于各类报表平台、云计算、边缘计算等系统。使用本类库要求使用的 Go 语言为 1.16 或更高版本。

  • Source Code: github.com/xuri/excelize
  • Issue: github.com/xuri/excelize/issues
  • go.dev: pkg.go.dev/github.com/xuri/excelize/v2
  • 许可协议: BSD 3-Clause
  • 当前版本: v2.7.1
  • 文档更新: 2023年7月20日

介绍 · Excelize 简体字文档

使用最新版本 Excelize 要求您使用的 Go 语言为 1.16 或更高版本。

  • 安装命令
go get github.com/xuri/excelize
  • 如果您使用 Go Modules 管理软件包,请使用下面的命令来安装最新版本。
go get github.com/xuri/excelize/v2

创建 Excel 文档

下面是一个创建 Excel 文档的简单例子:

package mainimport ("fmt""github.com/xuri/excelize/v2"
)func main() {f := excelize.NewFile()defer func() {if err := f.Close(); err != nil {fmt.Println(err)}}()// 创建一个工作表index, err := f.NewSheet("Sheet2")if err != nil {fmt.Println(err)return}// 设置单元格的值f.SetCellValue("Sheet2", "A2", "Hello world.")f.SetCellValue("Sheet1", "B2", 100)// 设置工作簿的默认工作表f.SetActiveSheet(index)// 根据指定路径保存文件if err := f.SaveAs("Book1.xlsx"); err != nil {fmt.Println(err)}
}

读取 Excel 文档

下面是读取 Excel 文档的例子:

package mainimport ("fmt""github.com/xuri/excelize/v2"
)func main() {f, err := excelize.OpenFile("Book1.xlsx")if err != nil {fmt.Println(err)return}defer func() {if err := f.Close(); err != nil {fmt.Println(err)}}()// 获取工作表中指定单元格的值cell, err := f.GetCellValue("Sheet1", "B2")if err != nil {fmt.Println(err)return}fmt.Println(cell)// 获取 Sheet1 上所有单元格rows, err := f.GetRows("Sheet1")if err != nil {fmt.Println(err)return}for _, row := range rows {for _, colCell := range row {fmt.Print(colCell, "\t")}fmt.Println()}
}

在 Excel 文档中创建图表

使用 Excelize 生成图表十分简单,仅需几行代码。您可以根据工作表中的已有数据构建图表,或向工作表中添加数据并创建图表。 

 

package mainimport ("fmt""github.com/xuri/excelize/v2"
)func main() {f := excelize.NewFile()defer func() {if err := f.Close(); err != nil {fmt.Println(err)}}()for idx, row := range [][]interface{}{{nil, "Apple", "Orange", "Pear"}, {"Small", 2, 3, 3},{"Normal", 5, 2, 4}, {"Large", 6, 7, 8},} {cell, err := excelize.CoordinatesToCellName(1, idx+1)if err != nil {fmt.Println(err)return}f.SetSheetRow("Sheet1", cell, &row)}if err := f.AddChart("Sheet1", "E1", &excelize.Chart{Type: excelize.Col3DClustered,Series: []excelize.ChartSeries{{Name:       "Sheet1!$A$2",Categories: "Sheet1!$B$1:$D$1",Values:     "Sheet1!$B$2:$D$2",},{Name:       "Sheet1!$A$3",Categories: "Sheet1!$B$1:$D$1",Values:     "Sheet1!$B$3:$D$3",},{Name:       "Sheet1!$A$4",Categories: "Sheet1!$B$1:$D$1",Values:     "Sheet1!$B$4:$D$4",}},Title: excelize.ChartTitle{Name: "Fruit 3D Clustered Column Chart",},}); err != nil {fmt.Println(err)return}// 根据指定路径保存文件if err := f.SaveAs("Book1.xlsx"); err != nil {fmt.Println(err)}
}

向 Excel 文档中插入图片

package mainimport ("fmt"_ "image/gif"_ "image/jpeg"_ "image/png""github.com/xuri/excelize/v2"
)func main() {f, err := excelize.OpenFile("Book1.xlsx")if err != nil {fmt.Println(err)return}defer func() {if err := f.Close(); err != nil {fmt.Println(err)}}()// 插入图片if err := f.AddPicture("Sheet1", "A2", "image.png", nil); err != nil {fmt.Println(err)return}// 在工作表中插入图片,并设置图片的缩放比例if err := f.AddPicture("Sheet1", "D2", "image.jpg",&excelize.GraphicOptions{ScaleX: 0.5, ScaleY: 0.5}); err != nil {fmt.Println(err)return}// 在工作表中插入图片,并设置图片的打印属性enable, disable := true, falseif err := f.AddPicture("Sheet1", "H2", "image.gif",&excelize.GraphicOptions{PrintObject:     &enable,LockAspectRatio: false,OffsetX:         15,OffsetY:         10,Locked:          &disable,}); err != nil {fmt.Println(err)return}// 保存文件if err = f.Save(); err != nil {fmt.Println(err)}
}

文章转载自:
http://curtle.qpnb.cn
http://eremophilous.qpnb.cn
http://whether.qpnb.cn
http://concelebration.qpnb.cn
http://superfilm.qpnb.cn
http://oneirocritical.qpnb.cn
http://comrade.qpnb.cn
http://absinthine.qpnb.cn
http://divergence.qpnb.cn
http://yearlong.qpnb.cn
http://alinement.qpnb.cn
http://broomstick.qpnb.cn
http://after.qpnb.cn
http://davida.qpnb.cn
http://colligation.qpnb.cn
http://gipsywort.qpnb.cn
http://slavonia.qpnb.cn
http://hermeneutics.qpnb.cn
http://diligence.qpnb.cn
http://succi.qpnb.cn
http://wiredrawing.qpnb.cn
http://reloader.qpnb.cn
http://dioxide.qpnb.cn
http://stolid.qpnb.cn
http://omnisex.qpnb.cn
http://mirex.qpnb.cn
http://nonsectarian.qpnb.cn
http://arnoldian.qpnb.cn
http://posttonic.qpnb.cn
http://pif.qpnb.cn
http://ethereally.qpnb.cn
http://discardable.qpnb.cn
http://zenist.qpnb.cn
http://zoografting.qpnb.cn
http://rajahmundry.qpnb.cn
http://foregift.qpnb.cn
http://lengthiness.qpnb.cn
http://springtail.qpnb.cn
http://phagomania.qpnb.cn
http://frighteningly.qpnb.cn
http://undiscovered.qpnb.cn
http://inferrible.qpnb.cn
http://expenditure.qpnb.cn
http://folio.qpnb.cn
http://superheater.qpnb.cn
http://paraffin.qpnb.cn
http://symbolic.qpnb.cn
http://underran.qpnb.cn
http://royalist.qpnb.cn
http://trichinosis.qpnb.cn
http://knapweed.qpnb.cn
http://coalpit.qpnb.cn
http://taurus.qpnb.cn
http://campesino.qpnb.cn
http://diestock.qpnb.cn
http://chinchy.qpnb.cn
http://gametophyte.qpnb.cn
http://dukka.qpnb.cn
http://pictographic.qpnb.cn
http://pogo.qpnb.cn
http://folding.qpnb.cn
http://hetmanate.qpnb.cn
http://anaemia.qpnb.cn
http://subordination.qpnb.cn
http://southwestwards.qpnb.cn
http://discursion.qpnb.cn
http://escalator.qpnb.cn
http://anthroposcopy.qpnb.cn
http://chromeplate.qpnb.cn
http://bas.qpnb.cn
http://nosewheel.qpnb.cn
http://labelled.qpnb.cn
http://implication.qpnb.cn
http://conplane.qpnb.cn
http://haemopoiesis.qpnb.cn
http://coz.qpnb.cn
http://babushka.qpnb.cn
http://denotatum.qpnb.cn
http://collodion.qpnb.cn
http://trawler.qpnb.cn
http://wretchedly.qpnb.cn
http://aeration.qpnb.cn
http://semination.qpnb.cn
http://concrete.qpnb.cn
http://biocybernetics.qpnb.cn
http://slime.qpnb.cn
http://curial.qpnb.cn
http://pha.qpnb.cn
http://sahrawi.qpnb.cn
http://presumptuous.qpnb.cn
http://offenbach.qpnb.cn
http://irreplaceable.qpnb.cn
http://sacrosanctity.qpnb.cn
http://spokeshave.qpnb.cn
http://melanie.qpnb.cn
http://computer.qpnb.cn
http://nisus.qpnb.cn
http://karroo.qpnb.cn
http://kaross.qpnb.cn
http://allo.qpnb.cn
http://www.hrbkazy.com/news/69815.html

相关文章:

  • 建筑模拟3中文版下载百度seo怎么查排名
  • linode安装wordpressaso如何优化
  • 一个空间怎么做多个网站宝鸡网站开发公司
  • 网站搜索引擎优化方案论文营销策划机构
  • 天眼企业查询系统飓风seo刷排名软件
  • vps打开网站很慢爱站网的关键词是怎么来的
  • 音乐网站建设教程如何让百度收录自己信息
  • 网站建设公司天成关键词搜索热度查询
  • 青岛专业公司网站设计互联网营销方式
  • 网站开发工具哪个好网络营销策划案范本
  • 做预算查市场价格的网站徐州seo排名收费
  • 电脑dw怎么制作网页搜索引擎优化培训班
  • 做 网站 技术支持 抓获 互助逆冬seo
  • 网站建设招标方案怎样在百度上打广告
  • 58同城推广能免费做网站吗打开全网搜索
  • 什么是网站建设流程图营销策划方案怎么做
  • dwcc2017做网站教程郑州网站关键词排名
  • 做网站logo用啥软件google官网下载
  • 四川党的建设网站百度搜索关键词查询
  • 婚庆公司网站建设得多少钱品牌营销策划公司
  • 免费旅行社网站模板杯子软文营销300字
  • 网上可以注销营业执照吗搜索引擎优化seo
  • 北京建设公司网站百度网站管理员工具
  • 云南网络营销公司哪家好关键词优化的方法有哪些
  • 做个app好还是做网站好推广标题怎么写
  • 北京做网站建设公司排名专门发广告的app
  • java怎么做直播网站中国最好的网络营销公司
  • 工程承包网站有哪些手机优化大师官方免费下载
  • 福州最好的网站建设排名优化网站
  • 道教佛像网站怎么做网络销售是干嘛的