摘要:
用foreach遍历二维数组 static void Main(string[] args) { object[,] dataArray = { { 1, 2, 3 }, { 4, 5, 6 }, { 7, 8, 9 } }; int count = 0; foreach (object item in dataArray) { Console.Write(item); Console.Write(" "... 阅读全文
摘要:
用foreach遍历二维数组 static void Main(string[] args) { object[,] dataArray = { { 1, 2, 3 }, { 4, 5, 6 }, { 7, 8, 9 } }; int count = 0; foreach (object item in dataArray) { Console.Write(item); Console.Write(" "... 阅读全文
摘要:
创建Excel private static void CreateSpreadSheet() { string fileName = "E:\\01.xlsx"; string sheetName = "test"; using (SpreadsheetDocument spreadSheet = SpreadsheetDocument.Create(fileName, SpreadsheetDocumentType.Workbook)) { //... 阅读全文
|