我正在使用带有 IronPython 2.7.4 + Excel Interop 的 PTVS 2.1 Beta 2 来访问 Excel 范围。如何查看/打印 Excel 范围中包含的数据?例如,如果我取 A1 到 D4 的范围,如何查看 4x4 2D 数组(16 个单元格)中包含的数据:
xlrange = worksheet.Range["A1", "D4"] # 4x4 2D array.
print xlrange.Value2 # Does not display the contents of the 2D array.