import lombok.*; /** * @author: Small sunshine * @Description: * @date: 2021/6/30 8:05 下午 */ public class SortTree { public static void main(String[] ...
分类:
其他好文 时间:
2021-07-01 17:04:50
阅读次数:
0
一、依赖倒转原则介绍 二、依赖倒转原则引入 1.方式一(传统方式) public class DependencyInversion { public static void main(String[] args) { Person person = new Person(); person.rec ...
分类:
其他好文 时间:
2021-07-01 16:40:10
阅读次数:
0
一、单一职责原则介绍 二、单一职责原则引入 1.方式一(违反了单一职责原则) 解析:摩托车、汽车是公路上运行的,但飞机并不是在公路上运行的。 public class SingleResponsibility1 { public static void main(String[] args) { / ...
分类:
其他好文 时间:
2021-07-01 16:31:05
阅读次数:
0
#region 毫秒延时 界面不会卡死 public static void Delay(int mm) { DateTime current = DateTime.Now; while (current.AddMilliseconds(mm) > DateTime.Now) { Applicati ...
分类:
移动开发 时间:
2021-07-01 16:29:40
阅读次数:
0
由于继承自UBlueprintFunctionLibrary的子类中声明的函数基本上是static, 在类内部调用外部定义的委托编译时会报错,按如下方式进行操作则可正常使用。 *.h 1 UCLASS() 2 class UE4_OSS_LIBRARY_API UOSSApiUtilty : pub ...
分类:
其他好文 时间:
2021-07-01 16:24:26
阅读次数:
0
详细报错记录: paddle_38) ziyueshijue@ziyueshijue-desktop:~/work/cppwork/padleDemo/model/PaddleDetection$ python tools/export_model.py -c configs/ppyolo/ppyo ...
分类:
其他好文 时间:
2021-07-01 16:23:33
阅读次数:
0
前言 需求:有这样一个数组[10, 20, 110, 200, 60, 30, 40] 1.筛选出数组中小于100的元素 2.将筛选出的每个元素的值x2 3.完成第2步之后,将数组中的所有元素加起来 普通方法 如果我们还没接触过filter、map、reduce,那么就是用for循环 <script ...
分类:
编程语言 时间:
2021-07-01 16:21:52
阅读次数:
0
//produceTypeList-produceType:存在produceTypeList中不存在produceType中 let diff1 = produceTypeList.filter(function(v){ return produceType.indexOf(v) -1 }).jo ...
分类:
编程语言 时间:
2021-06-30 18:45:31
阅读次数:
0
function captureImage () { var scale = 0.25; var txt = document.querySelector('div p .external'); video = document.querySelector("video"); var canvas ...
分类:
其他好文 时间:
2021-06-30 18:39:11
阅读次数:
0
<div class="login-container"> <div class="login-top-table"> <div class="login-top-table-cell"> <img src="../../../static/images/login-icon.png" class= ...
分类:
其他好文 时间:
2021-06-30 18:26:48
阅读次数:
0