PhantomJS是一种没有界面的浏览器,便于爬虫 1、PhantomJS下载 2、phantomjs无须安装driver,还有具体的api参考: http://phantomjs.org/api/command-line.html 3、配置config.py 4、爬取如下spider.py ...
分类:
数据库 时间:
2017-12-11 23:02:58
阅读次数:
535
MySQL默认的查询也不区分大小写。但作为用户信息,一旦用户名重复,又会浪费很多资源。再者,李逵、李鬼的多起来,侦辨起来很困难。要做到这一点,要么在建表时,明确大小写敏感(字段明确大小写敏感) sql : 查询 ...
分类:
数据库 时间:
2017-12-11 21:15:45
阅读次数:
185
前提 应该确定采用的是单表一个表空间,否则不支持单表的备份与恢复。 在配置文件里边的mysqld段加上 innodb_file_per_table = 1 环境说明: 主库:192.168.0.1 从库1:192.168.0.2 从库2:192.168.0.3 备份工具 : Percona xtra ...
分类:
数据库 时间:
2017-12-11 18:55:29
阅读次数:
284
select * from productstockquantity t where (select count(1) from productstockquantity where t.CombinationId = CombinationId AND t.StoreFrontId = Store ...
分类:
数据库 时间:
2017-12-11 18:48:06
阅读次数:
188
Selenium官方网站 http://selenium-python.readthedocs.io/ 配置使用环境 下载相应的浏览器驱动, Firefox 是默认的 本文以 chrome 为主 ,放在scripts目录下ChromeDriver 官方下载地址 : 所有版本的 ChromeDrive ...
分类:
编程语言 时间:
2017-12-11 18:47:17
阅读次数:
233
查询:将数据库-表中-若干日期-按一天24小时,将所有日期同一时间的数据求和。 学习点:将数据按小时分组求和 如果想在where条件使用sum函数,通过having来实现: ...
分类:
数据库 时间:
2017-12-11 16:13:03
阅读次数:
185
Volatile arrays in Java A slight complication of Java volatile fields, and one sometimes overlooked, is that declaring an array volatile does not give ...
分类:
编程语言 时间:
2017-12-11 14:14:25
阅读次数:
195
vue select下拉框绑定默认值: 首先option要加value值,以便v-model可以获取到对应选择的值 一、当没有绑定v-model,直接给对应的option加selected属性 二、当给select绑定了v-model的值的时候,要给v-model绑定的data值里写默认值 ...
分类:
其他好文 时间:
2017-12-11 14:13:53
阅读次数:
376
jianshuwangarticle.py: ...
分类:
其他好文 时间:
2017-12-11 14:05:47
阅读次数:
150
Given two non-empty binary trees s and t, check whether tree t has exactly the same structure and node values with a subtree of s. A subtree of s is a ...
分类:
其他好文 时间:
2017-12-11 13:56:56
阅读次数:
151