一、预测 先来看看这样一个场景: 假如你手头有一套房子要出售,你咨询了房产中介。中介跟你要了一系列的数据,例如房子面积、位置、楼层、年限等,然后进行一系列计算后,给出了建议的定价。 房产中介是如何帮你定价的? “中介”通过他多年的“从业”经验,知道哪些因素会影响房子的价格,且知道各自的“影响”有多大 ...
分类:
其他好文 时间:
2018-03-09 19:04:15
阅读次数:
636
A great forest is set on fire by a small spark. 最小的火能点着最大的树林。 It is just a spark, but it is enough to light the way forward for me. It is just a spark ...
分类:
其他好文 时间:
2018-03-04 19:59:40
阅读次数:
175
解决方案: 修改项目根目录下有.eslintrc.js文件,在配置文件中修改rule配置项: ...
分类:
其他好文 时间:
2018-03-01 19:55:39
阅读次数:
610
一 isinstance(obj,cls)和issubclass(sub,super) 二 反射 三 __setattr__,__delattr__,__getattr__ 四 二次加工标准类型(包装) 五 __getattribute__ 六 描述符(__get__,__set__,__delet ...
分类:
其他好文 时间:
2018-02-18 00:23:49
阅读次数:
168
In a proper unit test we want to isolate external dependencies as much as possible to guarantee a reliable test outcome. Http calls represent such ext ...
分类:
Web程序 时间:
2018-02-14 21:56:37
阅读次数:
273
淘宝的页面大量使用了js加载数据,所以采用selenium来进行爬取更为简单,selenum作为一个测试工具,主要配合无窗口浏览器phantomjs来使用。 ...
分类:
其他好文 时间:
2018-02-05 23:27:34
阅读次数:
199
本文通过C语言异常处理的方式引入C++的异常处理,进而分析C++异常处理机制,和异常处理的一些特殊问题等。
分类:
编程语言 时间:
2018-02-05 12:45:00
阅读次数:
190
学习Java并发编程不得不去了解一下java.util.concurrent这个包,这个包下面有许多我们经常用到的并发工具类,例如:ReentrantLock, CountDownLatch, CyclicBarrier, Semaphore等。而这些类的底层实现都依赖于AbstractQueued ...
分类:
编程语言 时间:
2018-02-02 15:40:17
阅读次数:
194
phantomjs是一个没有界面的浏览器,支持各种web标准,提供DOM 处理, CSS 选择器, JSON, Canvas, 和 SVG,对于爬取一些经过js渲染的页面非常有用。但是phantomjs默认的user-agent一般都被那些防采集的网站屏蔽了,鬼都知道用这个浏览器,都是来爬取网页的,... ...
分类:
Web程序 时间:
2018-01-31 11:20:12
阅读次数:
243
```shell
#!/usr/bin/expect
spawn ./init
expect "Which environment do you want the application to be initialized in?"
send "0\n"
expect "environment"
s... ...
分类:
其他好文 时间:
2018-01-30 21:21:46
阅读次数:
323