Reference: http://toutiao.com/a6319955208902869250/ 随着Scrapy等框架的流行,用Python等语言写爬虫已然成为一种时尚。但是今天,我们并不谈如何写爬虫,而是说说不要写代码就能写出来的爬虫。 爬虫新时代 在早期互联网世界,写爬虫是一项技术含量非 ...
分类:
其他好文 时间:
2016-09-18 01:05:55
阅读次数:
235
按值传递(call by value)是最常用的求值策略:函数的形参是被调用时所传实参的副本。修改形参的值并不会影响实参。 按引用传递(call by reference)时,函数的形参接收实参的隐式引用,而不再是副本。这意味着函数形参的值如果被修改,实参也会被修改。同时两者指向相同的值。 按引用传 ...
分类:
Web程序 时间:
2016-09-17 23:51:19
阅读次数:
220
英文手册:http://docs.spring.io/spring-data/gemfire/docs/1.5.2.RELEASE/reference/html/(Spring Data GemFire Reference Guide) 新版本不用配置Gemfire自带的cache.xml直接用引用 ...
分类:
编程语言 时间:
2016-09-17 22:01:43
阅读次数:
377
Reference: https://docs.python.org/2/library/collections.html namedtuple() factory function for creating tuple subclasses with named fields deque list ...
分类:
编程语言 时间:
2016-09-17 21:43:18
阅读次数:
126
http://docs.spring.io/spring-boot/docs/current/api/overview-summary.html http://docs.spring.io/spring-boot/docs/current/reference/htmlsingle/#auto-con ...
分类:
编程语言 时间:
2016-09-17 19:06:57
阅读次数:
1457
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=5877 题意:在一棵树上,每个节点有一个数值,问有多少对节点满足条件。 对于一对节点(u, v), 若满足 u 为 v的祖先节点且u,v节点上的数值乘积小于 k。 思路: dfs遍历树,对于每个节点 i ...
分类:
其他好文 时间:
2016-09-16 19:45:35
阅读次数:
219
1. Weak references: In computer programming, a weak reference is a reference that does not protect the referenced object from collection by a garbage ...
分类:
编程语言 时间:
2016-09-16 08:59:28
阅读次数:
235
题目链接:http://acm.split.hdu.edu.cn/showproblem.php?pid=5877 题意:给你一颗树,有n个节点,每个节点都有一个权值v[i];现在求有多少对(u,v)满足u是v的祖先,并且au*av<=k, k是已知的; 思路:从根节点开始dfs遍历整棵树,当遍历到 ...
分类:
其他好文 时间:
2016-09-15 15:08:41
阅读次数:
184
Weak Pair Time Limit: 4000/2000 MS (Java/Others) Memory Limit: 262144/262144 K (Java/Others)Total Submission(s): 2081 Accepted Submission(s): 643 Prob ...
分类:
编程语言 时间:
2016-09-15 11:01:25
阅读次数:
237
In C#, out keyword 是argument传值变成passed by reference. out keyword 在同时返回多个值时很有用. 与ref keyword 相似. 若是使用out keyword传argument, 那么在method 的definition 和 使用时都 ...