import npoi //导入库
//aardio的npoi写入excel实例
//当前目录如果存在文件则读取,不存在则创建文件,返回工作薄对象
workBook = npoi("/内容.xlsx")
//创建工作表
sheet = workBook.sheet("工作表1")
var tab = {}
for(i=1;10;1){
tab[i]={}
for(j=1;26;1){
tab[i][j]=i++j++j
}
}
sheet.setTable("A1",tab)
workBook.save() //保存到文件
import process;
process("/内容.xlsx")
aardio的npoi写入excel实例
最新推荐文章于 2024-03-22 13:22:57 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)