1 using System; 2 using System.Collections.Generic; 3 using System.ComponentModel; 4 using System.Data; 5 using System.Drawing; 6 using System.Linq; 7 ...
最近刚好涉及到从2个不同集合中找出不同的元素的需求,以下为测试代码 1、利用 apache collection 工具内中的方法,附上坐标 <dependency> <groupId>commons-collections</groupId> <artifactId>commons-collecti ...
分类:
其他好文 时间:
2019-12-27 19:59:04
阅读次数:
136
在Unity使用VS2017打开unityShader文件时总提示错误: 我也一直没找啥原因,我直接把之前工具拿过来了,shader文件直接使用vsCode打开,其他类型的文件也可这样处理,如:pdf,txt等文件均可 具体代码如下: 1 using System.Collections; 2 us ...
分类:
编程语言 时间:
2019-12-27 15:32:03
阅读次数:
315
内存管理 内存分配和内存释放 内存分配由程序完成,内存释放由GC完成 运行时数据区域 (1)程序计数器(program counter register) 一块较小的内存空间 当前线程所执行的字节码的行号指示器,字节码解释器在工作的时候就是通过改变程序计数器的值来选取下一跳要执行的指令 多线程环境下 ...
分类:
其他好文 时间:
2019-12-27 13:09:40
阅读次数:
94
集合类不安全操作:只要是在Collections挂过号的都是线程不安全的: java.util.ConcurrentModificationException:并发修改异常 四、我们知道ArraysList是线程不安全的,请编写一个不安全的案例并给出解决方案: 1. ArraysList: 问题: ...
分类:
其他好文 时间:
2019-12-27 09:55:27
阅读次数:
60
题目描述: 自己的提交: class Solution: def isPossibleDivide(self, nums: List[int], k: int) -> bool: c = collections.Counter(nums) n = len(nums) m = n/k if m%1 ! ...
分类:
其他好文 时间:
2019-12-25 20:48:02
阅读次数:
76
题目描述: 自己的提交: class Solution: def maxFreq(self, s: str, maxLetters: int, minSize: int, maxSize: int) -> int: c = collections.Counter() for i in range(l ...
分类:
其他好文 时间:
2019-12-25 17:47:39
阅读次数:
137
文件夹,文件这是常见的,怎么创建?要不要先判断是否存在?非常非常基础的知识点 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO; namespac ...
1 #include<iostream> 2 #include<Windows.h> 3 #include<vector> 4 #include<deque> 5 using namespace std; 6 void prinfVector(vector<int> &v) 7 {//vector迭 ...
分类:
其他好文 时间:
2019-12-25 13:06:44
阅读次数:
74
1.使用 Collections 工具类中的 sort() 方法 参数不同: void sort(List list) 在自定义类User里面实现Comparable<User>接口,并重写抽象方法compareTo(Student o); void sort(List list, Comparat ...
分类:
编程语言 时间:
2019-12-24 23:48:55
阅读次数:
166