开闭原则的定义 开闭原则(Open Closed Principle,OCP)由勃兰特·梅耶(Bertrand Meyer)提出,他在 1988 年的著作《面向对象软件构造》(Object Oriented Software Construction)中提出:软件实体应当对扩展开放,对修改关闭(So ...
分类:
其他好文 时间:
2019-11-09 11:24:13
阅读次数:
104
1、首先是jdk的路径问题 为了和以后出现的hadoop,spark出现 路径带有空格导致 调用失败的情况, 直接把 jdk的路径 剪切到 没有空格的目录下。 D:\>echo %JAVA_HOME% C:\Java\jdk1.8.0_202 到这里,在cmd下,能 看到 scala -versio ...
1.failed to delete docker image. when I try to remove an image, I should stop all containers first(docker ps -a). use docker rm XXXXX XXXX; root@pi3b: ...
分类:
其他好文 时间:
2019-11-07 20:50:27
阅读次数:
99
Paper Submission All submissions must be in English. The papers should have 10~12 LNCS pages in length, including figures and references. Authors shou... ...
分类:
其他好文 时间:
2019-11-07 17:36:47
阅读次数:
148
原题链接 http://acm.hdu.edu.cn/showproblem.php?pid=3501 Given a positive integer N, your task is to calculate the sum of the positive integers less than N ...
分类:
其他好文 时间:
2019-11-06 12:53:22
阅读次数:
69
目录 定义 意义 做法 实践 uml图 代码部分 目录 定义 意义 做法 实践 uml图 代码部分 定义 意义 做法 实践 uml图 代码部分 uml图 代码部分 github仓库 定义 Liskov于1987年提出了一个关于继承的原则“Inheritance should ensure that ...
分类:
其他好文 时间:
2019-11-04 17:46:06
阅读次数:
87
[TOC] "github仓库" 定义 Liskov于1987年提出了一个关于继承的原则“Inheritance should ensure that any property proved about supertype objects also holds for subtype objects ...
分类:
其他好文 时间:
2019-11-04 15:26:45
阅读次数:
102
We should use the sieve f vibrating screen carefully, avoid overload work so as to prolong its service life. Loose the clamp bolt, remove the up frame... ...
分类:
其他好文 时间:
2019-11-04 13:59:59
阅读次数:
94
求数组的局部峰值。给一个数组,数组满足条件nums[i] ≠ nums[i+1],求数组峰值的下标。例子 Example 1: Example 2: 思路是用二分法,因为题目要求时间复杂度是log级别。 时间O(logn) 空间O(1) ...
分类:
其他好文 时间:
2019-11-04 13:51:26
阅读次数:
77
题目描述: Given a linked list, swap every two adjacent nodes and return its head. For example,Given1->2->3->4, you should return the list as 2->1->4->3. Y ...
分类:
其他好文 时间:
2019-11-03 18:00:12
阅读次数:
78