📅  最后修改于: 2022-03-11 14:49:17.600000             🧑  作者: Mango
using ClosedXML.Excel;
XLWorkbook wb = new XLWorkbook();
DataTable dt = GetDataTableOrWhatever();
wb.Worksheets.Add(dt,"WorksheetName");