using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; namespace xxxxx.MessageHandling.Config { public ...
分类:
其他好文 时间:
2020-01-23 13:57:48
阅读次数:
74
```cpp#include #include using namespace std;int main(int argc, char* argv[]){ deque deq; for (int i = 0; i#include using namespace std;int main(int ar... ...
分类:
其他好文 时间:
2020-01-22 23:59:14
阅读次数:
138
json模块 json模块是将满足条件的数据结构转化成特殊的字符串,并且也可以反序列化还原回去。 用于网络传输:dumps、loads 用于文件写读:dump、load dumps 将字典和列表转化为字符串类型 loads 将字符串类型的字典或列表转换成原数据类型字典或列表 dump 将对象转换成字 ...
分类:
编程语言 时间:
2020-01-22 23:40:59
阅读次数:
90
import java.util.ArrayList; import java.util.Collections; import java.util.Comparator; import java.util.List; public class Test { /** * @param args */ ...
分类:
编程语言 时间:
2020-01-22 12:37:01
阅读次数:
57
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System. ...
#### 不可变集合1. ImmutableXXX系列,of,copyOf,builder构造2. JDK也提供了Collections.unmodifiableXXX方法把集合包装为不可变形式3. 所有的Immutable系列均不接受null4. 所有的Immutable系列提供Immutable... ...
分类:
其他好文 时间:
2020-01-20 17:29:09
阅读次数:
95
源码分析 - Collections.sort() 一、Collection.sort使用 Collections.sort():是对一个集合进行正向排序的方法首先,传入Collections.sort()的集合的元素类型要继承Comparator<T>,这样才能保证可以比较并排序。 根据源码分析, ...
分类:
编程语言 时间:
2020-01-20 12:53:33
阅读次数:
65
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System. ...
Counter 计数器是一个累积量度,代表一个单调递增的计数器,其值只能在重新启动时增加或重置为零。 例如,您可以使用计数器来表示已处理请求,已完成任务或错误的数量。 Gauge Gauge是一种度量标准,代表可以任意上下波动的单个数值。通常用于测量值,例如温度或当前的内存使用量,还用于可能上升和下 ...
分类:
其他好文 时间:
2020-01-19 22:09:08
阅读次数:
134
$\color{ FF7D00}{题目描述}$ 从上往下打印出二叉树的每个节点,同层节点从左至右打印。 $\color{ FF7D00}{解题:借用队列存一个节点,遍历它的值以及左右孩子的值之后,将左右孩子依次入队列,再循环如此的操作直至队列为空。}$ ...
分类:
其他好文 时间:
2020-01-19 12:52:03
阅读次数:
55