Writing a 2-D array to Excel

bre*_*cvz 5 excel datanitro

Is there a good way to write a 2-D array to a table in DataNitro? I'm working on a basic sudoku solver in Excel and would rather use python than VisualBasic.

Ben*_*ner 6

是的,您可以使用表格单元格属性 - 我们在上次更新时添加了此属性.

例如:

x = [[6, 7, '', 2, 3, '', '', '', ''], ... ['', '', '', '', 6, 8, '', 3, 2]] 
# the sudoku puzzle, written out row boy row
Cell("A1").table = x
Run Code Online (Sandbox Code Playgroud)

资料来源:我是DataNitro开发人员之一.