private string GetCellText(int row, int col, ExcelWorksheet oSheet) { string result = ""; bool isFound = false; int rowEnd = 1; int colEnd = 1; ExcelR ...
分类:
其他好文 时间:
2020-09-17 12:13:37
阅读次数:
30
public class Stack { private int maxSize=16; private int top; private int[] arr=null; public Stack(int maxSize) { if(maxSize<1){ throw new RuntimeExce ...
分类:
编程语言 时间:
2020-09-16 12:46:27
阅读次数:
67
Linux删除文件过程解析 1. 概述 当我们执行rm命令删除一个文件的时候,在操作系统底层究竟会发生些什么事情呢,带着这个疑问,我们在Linux-3.10.104内核下对ext4文件系统下的rm操作进行分析。rm命令本身比较简单,但其在内核底层涉及到VFS操作、ext4块管理以及日志管理等诸多细节 ...
分类:
系统相关 时间:
2020-09-16 12:20:17
阅读次数:
38
解析:https://leetcode-cn.com/problems/shu-de-zi-jie-gou-lcof/solution/mian-shi-ti-26-shu-de-zi-jie-gou-xian-xu-bian-li-p/ bool isSubStructure(TreeNode* ...
分类:
其他好文 时间:
2020-09-16 12:19:57
阅读次数:
34
1.验证手机号码的方法: public static bool IsHandset(string str_handset){ return System.Text.RegularExpressions.Regex.IsMatch(str_handset, @"^1[3456789]\d{9}$"); ...
Dijkstra🍦 Dijkstra解决单元最短路问题,要求边的大小必须为正 模板: const int maxv=1000; const int inf=1e9; int n,g[maxv][maxv]; int d[maxv]; bool vis[maxv]; void dijkstra(in ...
分类:
其他好文 时间:
2020-09-15 21:10:40
阅读次数:
34
创建、删除(del)对象 类型转换 True值为1,False值为0,可以参与运算,但并不是1和0 加减乘除、取余、整除(整除后的类型看分子分母类型是否一致)、次方 绝对值(abs)函数、最大值(max)函数、最小值(min)函数 # 创建 a1=1 a2=10 # 删除 del a1,a2 # 转 ...
分类:
其他好文 时间:
2020-09-15 20:56:04
阅读次数:
29
源码: public final boolean tryAcquireSharedNanos(int arg, long nanosTimeout) throws InterruptedException { if (Thread.interrupted()) throw new Interrupt ...
分类:
其他好文 时间:
2020-09-14 19:10:37
阅读次数:
24
1.maven依赖 <dependency> <groupId>org.bytedeco</groupId> <artifactId>javacv-platform</artifactId> <version>1.5.1</version> <type>pom</type> </dependency ...
分类:
编程语言 时间:
2020-09-14 19:03:15
阅读次数:
94
Java中有两类“错误”:Error 和 Exception,它们两个都是类并继承与 Throwable 类,我们首先介绍一下 Throwable。 一、Throwable Throwable 是 java.lang 包中用来定义所有可以被抛出的异常,实现了Serializable接口,可以进行序列 ...
分类:
其他好文 时间:
2020-09-12 21:38:20
阅读次数:
32