gpt4 book ai didi

excel - Golang Excelize : how to set cell value with row nmber and column number

转载 作者:数据小太阳 更新时间:2023-10-29 03:19:49 28 4
gpt4 key购买 nike

我正在尝试编写一个函数,该函数使用 Excelize 编写一个字符串数组以在 Go 中表现出色。我的问题:如何使用行号和列号来处理单元格,而不是“axis”参数的“A1”语法类型?

// Writes the header of the file:  
xlfile.SetCellValue("Sheet1", "A1", "1")

// Instead of "A1", I would like to use row number and col number as parameters

最佳答案

CoordinatesToCellName将 [X, Y] 坐标转换为字母数字单元格名称或返回错误。

关于excel - Golang Excelize : how to set cell value with row nmber and column number,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55743188/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com