What is the role of the instance variable sideLength? 从的代码当中我们不难看出,该变量是控制该虫子周围的空间大小的,以提供给变量合理的移动空间。 private int steps; private int sideLength; What is ...
分类:
其他好文 时间:
2020-10-21 20:28:49
阅读次数:
21
一、六大设计原则 1、单一职责原则 【Single Responsibility Principle】 保证类的职责要单一。 应该有且仅有一个原因引起类的变更。 好处: 类的复杂性降低 可读性提高 可维护性提高 比那更引起的风险降低 2、里氏替换原则 【Liskov Substitution Pri ...
分类:
其他好文 时间:
2020-10-21 20:26:08
阅读次数:
18
将镜像推送到私有仓库,出现错误“received unexpected HTTP status: 500 Internal Server Error” ...
分类:
Web程序 时间:
2020-10-20 16:39:35
阅读次数:
33
Existing lock /var/run/yum.pid: another copy is running as pid 19342. Another app is currently holding the yum lock; waiting for it to exit... The oth ...
分类:
其他好文 时间:
2020-10-20 16:35:38
阅读次数:
30
TLS/SSL 握手失败引起的连接异常问题怎么搞?阿里云 SRE 工程师手把手带你排查解决。 ...
分类:
其他好文 时间:
2020-10-19 22:30:59
阅读次数:
46
通过Nginx日志,可以简单分析WEB网站的运行状态、数据报表、IP、UV(unique visitor指独立访客访问数,一台电脑终端为一个访客。)、PV(page view即页面访问量,每打开一次页面PV计数+1,刷新页面也是)访问量等需求,如下为常用需求分析: (1) 统计Nginx服务器独立I ...
分类:
其他好文 时间:
2020-10-18 16:18:58
阅读次数:
21
matlab rrt star学习 function problem = rrt_star_fn(map, max_iter, max_nodes, is_benchmark, rand_seed, variant) %RRT_STAR_FN -- RRT*FN is sampling-based ...
分类:
其他好文 时间:
2020-10-18 09:51:23
阅读次数:
16
到http://mirror.bit.edu.cn/apache/hbase/下载对应的Hbase版本 我这里下载的是hbase-2.2.6-bin.tar.gz版本,是较稳定的版本。 解压: tar -zxvf /home/hadoop/桌面/hbase-2.2.6-bin.tar.gz 移动位置 ...
分类:
系统相关 时间:
2020-10-18 09:47:54
阅读次数:
26
使用中科大的有ProxmoxVE的仓库SSH登录节点,查找相关配置文档,修改中科大的源地址,操作如下:grep-rn"download.proxmox.com"/usr/share/perl5/PVE/*sed-i.bak"s#http://download.proxmox.com/images#https://mirrors.ustc.edu.cn/proxmox/images#g"/usr/s
分类:
其他好文 时间:
2020-10-18 09:31:59
阅读次数:
26