03 2023 档案
摘要:C# 字典、集合、列表的时间复杂度 - 你也很优秀 - 博客园 (cnblogs.com) Dictionary查找Key的源码 private int FindEntry(TKey key) { if( key == null) { ThrowHelper.ThrowArgumentNullExc
阅读全文
摘要:Sub 将sheet1中没有sheet2也有的加标记A() Dim i As Integer, j As Integer For i = 1 To 2880 'Worksheets("Sheet1").Cells(行,列) 和 Sheet1.Cells(行,列)等效 For j = 1 To 42
阅读全文
摘要:给定一个整数数组 nums 和一个整数目标值 target,请你在该数组中找出 和为目标值 target 的那 两个 整数,并返回它们的数组下标。 你可以假设每种输入只会对应一个答案。但是,数组中同一个元素在答案里不能重复出现。 你可以按任意顺序返回答案。 来源:力扣(LeetCode)链接:htt
阅读全文
摘要:Sub test() Dim arr()Dim i, j As Integerj = Range("A65536").End(xlUp).Row - 1ReDim arr(1 To j)For i = 1 To jarr(i) = Range("D"&i+1)+Range("E"&i+1)+Rang
阅读全文
摘要:Sub test() '先在VBA的"工具(T)"->"引用(R)"中添加引用:Microsoft Word 14.0 Object Library Dim objApp As New Word.Application, Path, FileNamePath, i, j, arr, brr, str
阅读全文
摘要:DOevents的含义是转让控制权,以便让操作系统处理其它事件。
阅读全文
摘要:Dim fso As FileSystemObject Set fso = New FileSystemObject If Not fso.FileExists(sPath & sFile) Then If bRetry Then Beep If MsgBox("File, " + sPath +
阅读全文
摘要:vba Collection可以存入一个类。 VBA学习笔记1-VBA集合Collection_vba 集合_lyfegf的博客-CSDN博客
阅读全文
摘要:public static int[] SF(int[] Arr) { if(Arr == null || Arr.Length <= 0) return Arr; int j = 0; // j最终停在第一个应该为0的位置上 j++ for(int i=0;i<Arr.Length;i++) {
阅读全文
摘要:namespace NDNGH; public class DTGH{ public static int Change(int n) { int minCount = -1, time = 0; for(int c5 = 0; c5 < n / 5; c5++) { for(int c3 = 0;
阅读全文
摘要:构造树,并求每条路径和 第一步:构造树节点用到的类: public class Node{ public int Val{get;set;} public Node? LNode{get;set;} public Node? RNode{get;set;} public Node(int val)
阅读全文
摘要:《吐血整理》C#一些常用的帮助类 - 薛小谦 - 博客园 (cnblogs.com) https://github.com/ldqk/Masuit.Tools Expression表达式树:https://github.com/dynamicexpresso/DynamicExpresso
阅读全文
摘要:(1条消息) VBA -[知识点]: 字典_vba 字典_Rambo.Fan的博客-CSDN博客
阅读全文
摘要:Dim v_Data() as variant Dim range_to_Load as range Dim y as long, x as long 'set a range or better still use a list object set range_to_Load = thiswor
阅读全文
摘要:ES6在开发中的适用场景汇总 (baidu.com)
阅读全文
摘要:display:flex; flex-direction:row(默认值) | row-reverse | column |column-reverse -主轴方向 flex-wrap:nowrap(默认值) | wrap | wrap-reverse -内容多了 justify-content:f
阅读全文
摘要:1.let const var a = []; for (var i = 0; i < 10; i++) { a[i] = function () { console.log(i); }; } a[6](); // 10 由于这里的i是var申明的,全局都是这一个i,当循环结束 i=10,注意最后面
阅读全文
摘要:一 比较三种数据类型enum 枚举型,数值类型 eNumarray 数组dictionary 字典 二 枚举型1.1 枚举型 enum 需要先用户自定义放在过程外,模块最前面只能用public private 声明,不能用 dim Public Enum w1week1week2week3week4
阅读全文