机智的算法 发表于 2015-11-06 分类于 笔记 阅读次数: Disqus: 持续更新好了…… 取随机正负(ruby) (-1) ** rand(2) 取同步锁(java) synchronized(MyClass.class) { // do sth. }