[实现ArrayList重新排序:我们可以用下面的代码来实现ArrayList重新排序:Collections.reverse(aList);示例:ArrayList aList = new ArrayList(); //Add elements to ArrayList object aList.... ...
分类:
编程语言 时间:
2020-07-05 13:38:49
阅读次数:
59
[Session是什么?session机制是一种服务器端的机制,用来在无状态的HTTP协议下越过多个请求页面来维持状态和识别用户。当程序需要为某个客户端的请求创建一个session的时候,服务器首先检查这个客户端的请求里是否已包含了一个session标识。这个标识称为session id,如果已包含... ...
分类:
其他好文 时间:
2020-07-05 13:32:37
阅读次数:
93
We have a wooden plank of the length n units. Some ants are walking on the plank, each ant moves with speed 1 unit per second. Some of the ants move t ...
分类:
其他好文 时间:
2020-07-05 13:12:51
阅读次数:
66
package LeetCode_706 /** * 706. Design HashMap * https://leetcode.com/problems/design-hashmap/description/ * * Design a HashMap without using any buil ...
分类:
其他好文 时间:
2020-07-05 01:05:33
阅读次数:
77
内存结构 程序计数器 虚拟机栈 本地方法栈 堆 方法区 1. 程序计数器 1.1 定义 Program Counter Register 程序计数器(寄存器) 作用,是记住下一条jvm指令的执行地址 特点 是线程私有的 不会存在内存溢出 1.2 作用 0: getstatic #20 // Prin ...
分类:
其他好文 时间:
2020-07-05 00:34:54
阅读次数:
61
OpenStack Train版-2.安装keystone身份认证服务 1. 创建keystone数据库并授权 mysql -u root -proot CREATE DATABASE keystone; GRANT ALL PRIVILEGES ON keystone.* TO 'keystone ...
分类:
其他好文 时间:
2020-07-05 00:24:04
阅读次数:
80
OpenStack Train版-1.安装基础环境&服务 1. 基础环境1.1 主机名&ip IP地址 主机名 配置10.0.0.11 controller 4C8G10.0.0.31 compute01 4C8G1.2 ntp时间同步 [root@controller ~]# yum instal ...
分类:
其他好文 时间:
2020-07-05 00:16:35
阅读次数:
83
最近在学习数据库的事务隔离级别。在这里整理一下。由于本人水平和写作能力有限,如文中有错误或者表达不清楚的地方,请多包涵。有任何意见或建议,欢迎留言。 我们都知道关系型数据库事务有 ACID 的原则,他们分别代表原子性(Atomicity),一致性(Consistency)、隔离性(Isolation ...
分类:
数据库 时间:
2020-07-04 22:54:50
阅读次数:
80
运行环境:python3.6.9 opencv3.4.10 import cv2 import numpy as np font=cv2.FONT_HERSHEY_COMPLEX kernel = np.ones((7,7),np.uint8) img=cv2.imread('corn.jpg',1 ...
分类:
其他好文 时间:
2020-07-04 22:25:33
阅读次数:
72
P1160 队列安排 AKA 指针模板题 链表模板题,本题目下$list$的教学已经很多了,我来讲点更加基础的$\rightarrow$ 基础指针(结构体内) 写在前面:本教程假设读者基本了解指针的定义以及使用,能会用指针写a+b就行 写主席树,平衡树时我们会发现数组套数组的写法十分难受 ... i ...
分类:
编程语言 时间:
2020-07-04 22:21:36
阅读次数:
79