Problem UVA11925-Generating Permutations Accept: 214 Submit: 1429Time Limit: 1000 mSec Problem Description A permutation on the integers from 1 to n i ...
分类:
其他好文 时间:
2018-09-21 13:34:59
阅读次数:
377
最近东西积攒了太多,感觉再不写进来就要炸了。 1.多线程 1.11 关于多线程的包 相关的python包有几个,比如thread包,到py3改成_thread,而thread有一些问题使得不是很好用。通用的包叫threading。最近都是在用这个。 1.12 threading的使用和常用属性 需要 ...
分类:
编程语言 时间:
2018-09-19 01:22:19
阅读次数:
192
MongoDB 分片是一种海量数据水平扩展的数据库群集系统,数据分布存储在分片的各个节点上,管理者通过简单的配置就可以构建一个分布式MongoDB 分片式群集。复制集往往会与分片结合来使用,来保证MongoDB 的高可用性
分类:
数据库 时间:
2018-09-18 19:12:49
阅读次数:
175
There are several ancient Greek texts that contain descriptions of the fabled island Atlantis. Some of these texts even include maps of parts of the i ...
分类:
其他好文 时间:
2018-09-18 13:07:28
阅读次数:
145
1. 开始(base) C:\>cd test使用命令安装zipline,在默认的base环境中(base) C:\test>conda install -c Quantopian ziplineSolving environment: done## Package Plan ## environm ...
分类:
其他好文 时间:
2018-09-17 20:33:47
阅读次数:
266
reactnative的两个核心的属性控制改变组件:props和state。props是在父组件中进行设置,只要设置完成那么在组件的生命周期就定死了,不会发生改变。针对数据变化修改的情况,我们需要使用state属性;一般情况下,我们需要在constructor方法中初始化state,然后在你想要修改更新的时候调用setState方法。方法名作用调用次数constructor构造函数,初始化需要的s
分类:
其他好文 时间:
2018-09-17 14:36:45
阅读次数:
143
uname -r You should receive a result similar to the following: 2.6.32-431.11.2.el6.x86_64 The output can be interpreted with the following key: 2 – Ke ...
分类:
其他好文 时间:
2018-09-16 12:27:31
阅读次数:
145
Sudoku Time Limit: 2000MS Memory Limit: 65536K Total Submissions: 24108 Accepted: 11259 Special Judge Description Sudoku is a very simple task. A squa ...
分类:
其他好文 时间:
2018-09-15 15:17:42
阅读次数:
115
Unsafe 类在 sun.misc 包下,不属于Java标准。但是很多 Java 的基础类库,以及优秀的三方库都会用这个提升性能。 Unsafe 使用了单例模式,想使用 Unsafe 类就需要获取实例。由于安全限制,不能用一般的方法获取这个实例,通常都是使用反射获取 Unsafe 类几类功能: 内 ...
分类:
编程语言 时间:
2018-09-14 17:16:49
阅读次数:
234
性能优化的思路 影响网页性能最大的因素是浏览器的重排(repaint)和重绘(reflow)。 React的Virtual DOM就是尽可能地减少浏览器的重排和重绘。 从React渲染过程来看,如何防止不必要的渲染是解决问题的关键。 性能优化的具体办法 1. 尽量多使用无状态函数构建组件 无状态组件 ...
分类:
其他好文 时间:
2018-09-13 20:25:35
阅读次数:
135