在某一数据表中,数据有冗余了,我们需要获取唯一的记录。同这样的问题,使用例子来说时,最简单了。创建一张数据表: CREATE TABLE dbo.Data ( [ID] int IDENTITY(1,1) NOT NULL, [Item] varchar(55) NULL, [Designation ...
分类:
其他好文 时间:
2017-04-26 11:46:04
阅读次数:
112
volatilekeyword 当变量被某个线程A改动值之后。其他线程比方B若读取此变量的话,立马能够看到原来线程A改动后的值 注:普通变量与volatile变量的差别是volatile的特殊规则保证了新值能马上同步到主内存,以及每次使用前能够马上从内存刷新,即一个线程改动了某个变量的值,其他线程读 ...
分类:
其他好文 时间:
2017-04-26 10:15:11
阅读次数:
293
1 2 3 按上键可以向上移动 4 按下键可以向下移动 5 按左键可以向左移动 6 按右键可以向右移动 7 ctrl+键盘上键可以放大 8 ctrl+键盘下键可以缩小 9 ctrl+键盘左右键可以随机变颜色 10 11 12 52 ...
分类:
移动开发 时间:
2017-04-26 01:28:25
阅读次数:
320
正规题解传送门 : https://zyqn.tech/?p=3163 但是我们发现n只有2000,于是可以建出trie树然后愉快的bitset去搞。 直接对于trie上每个节点开个bitset空间爆炸。但是有很多是重复的,所以我们想虚树一样建,每个节点只存一个link指针。 代码 : #inclu ...
分类:
其他好文 时间:
2017-04-25 23:31:24
阅读次数:
208
package lei; public class Test2 { public static void main(String[] args) { String s="我爱你"; StringBuffer s1 = new StringBuffer("我爱你"); String s2=new St... ...
分类:
其他好文 时间:
2017-04-25 20:02:59
阅读次数:
146
Future is introduced in JDK 1.5 by Doug Lea to represent "the result of an asynchronous computation". Similar to runnable, callable can also be submit ...
分类:
编程语言 时间:
2017-04-25 19:56:55
阅读次数:
366
1. 它是什么? 官方解释: [RACSignal] is a push-driven stream with a focus on asynchronous event delivery through subscriptions. 其它解释: ReactiveCocoa(简称为RAC),是由Gi ...
分类:
其他好文 时间:
2017-04-25 17:12:05
阅读次数:
149