@author 作者名 @version 版本号 @since 指明需要最早使用的JDK版本 @param 参数名 @throws 异常抛出情况 @link {@link 包名.类名#方法名(参数类型)} 用于快速链接到相关代码 @code: {@code text} 将文本标记为code @ret ...
分类:
编程语言 时间:
2021-04-12 12:05:20
阅读次数:
0
考虑到直接讲实现一个类Task库思维有点跳跃,所以本节主要讲解Async/Await的本质作用(解决了什么问题),以及Async/Await的工作原理。实现一个类Task的库则放在后面讲。首先回顾一下上篇博客的场景。 class Program { public static string GetM ...
asdfasf /** * nihao * @author Administrator * */ public class HelloWorld { public static void main(String[] args) { System.out.println("Hello world!") ...
分类:
其他好文 时间:
2021-04-12 11:46:53
阅读次数:
0
Link Description 给出长为 \(n\) 的数列 \(\{a_n\}\),选出一个长度大于二的子序列,使得 \(\prod_{i=2}^K \binom{b_{i-1}}{b_i} \bmod 2=1\) 求方案数。 Solution 对组合数取模,容易想到卢卡斯定理,条件就转化为在二 ...
分类:
其他好文 时间:
2021-04-12 11:42:15
阅读次数:
0
通过两种方法: TaskFactory/ParallelOptions class Program { static void Main(string[] args) { int num = 10; ControlTaskNum(num); UseParallelOptions(num); } // ...
分类:
编程语言 时间:
2021-04-12 11:41:02
阅读次数:
0
项目结构 首先创建3个项目,这3个项目将做为我们学习 IdentityServer4 的基础项目,项目框架全部使用 .NET CORE 3.1。 端口约定如下: MicroShell.IdentityServer4.Server : 5000 MicroShell.IdentityServer4.A ...
分类:
其他好文 时间:
2021-04-10 13:31:25
阅读次数:
0
单例模式 应用场景:只需要一个实例,保证一个类仅有一个实例,并提供一个访问它的全局访问点. 这里主要列举以下四种实现方式: (1)饿汉式: public class Singleton01 { public static final Singleton01 SINGLETON = new Singl ...
分类:
其他好文 时间:
2021-04-10 13:24:03
阅读次数:
0
public class Demo { public static void main(String[] args) { System.out.println(Contains1("abfadawdawdawd", ".*daw.*")); System.out.println(Contains2( ...
分类:
其他好文 时间:
2021-04-10 13:19:37
阅读次数:
0
package test; public class test1 { public static void main(String args[]){ //使用for循环计算1-100的和,除了以3结尾的那些数 int sum = 0; for(int x = 1;x<=100;x++){ if(x% ...
分类:
其他好文 时间:
2021-04-10 13:09:10
阅读次数:
0
Clang Static Analyzer-使用手册-编写Checker代码实现 示例程序MainCallChecker.cpp #include"ClangSACheckers.h"#include"clang/StaticAnalyzer/Core/BugReporter/BugType.h"# ...
分类:
其他好文 时间:
2021-04-10 13:02:00
阅读次数:
0