• 2024-04-08openpyxl解析xlsx文件示例
    #coding=utf-8importopenpyxldefread_sheet(book_name,sheet_name):returnopenpyxl.load_workbook(book_name)[sheet_name]defget_pai2times(sheet,pai_col,time_col):records=dict()forrowinsheet.iter_rows(min_row=2,max_row=sheet.max
  • 2024-04-07WPF datagrid mvvm multi select via customize datagrid
    usingSystem;usingSystem.Collections;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Text;usingSystem.Threading.Tasks;usingSystem.Windows;usingSystem.Windows.Controls;namespaceWpfApp39{publicclassMultiSelectDataGrid:D
  • 2023-01-03《STL 源码剖析》学习笔记之容器(二)list
    [图]Theorange 2019-08-061、list概述相较于vector的连续线性空间,list就显得复杂许多,它的好处是每次安插或删除一个元素,就配置或释放一个元素空间。因此,list对于空间
  • 2022-12-08三、NHibernate查询之HQL&Criteria
    一、什么是HQL(NHibernateQueryLanguage)查询语言Ø    定义:NHibernate查询语言(HQL,NHibernateQueryLanguage)是NHibernate特有的基于面向对象的SQL查询语言,它具有
  • 2022-11-27C# SqlParameter动态添加
    List<SqlParameter>ilist=newList<SqlParameter>();ilist.Add(newSqlParameter("@Param1","1"));ilist.Add(newSqlParameter("@Param2"
  • 2022-11-25C#中List与IList的区别
    List与IList的区别2009-11-1514:19List<T>类:表示可通过索引访问的对象的强类型列表,提供用于对列表进行搜索、排序和操作的方法。IList<T>接口:表示可按照索引单
  • 2022-10-27C#笔记 其三
    自定义集合集合接口IList<T>列表关键词:变长数组、有序集合、任意访问、索引常用方法:list.Add(T);list.Remove();list.RemoveAt(int);list.Sort();list.Sort(ICo
  • 2022-09-20Dapper Query和IList
    DapperQuery和IList publicGoodDMGetDMGoods(intGoodsID,intBID){GoodDMentity=newGoodDM();varentity_Goods=bl
  • 2022-09-20dapper Query和 IList
    publicGoodDMGetDMGoods(intGoodsID,intBID){GoodDMentity=newGoodDM();varentity_Goods=bllGoods.GetGoodsDet
  • 2022-08-26C#集合:ICollection和IList接口
    虽然枚举接口IEnumerable提供了一种向前迭代集合的协议,但是它们并没有提供确定集合大小、根据索引访问成员、搜索以及修改集合的机制。为了实现这些功能,.NETCore定义了ICo