查询往前7天的数据: [html] view plain copy print? select * from 数据表 where DATE_SUB(CURDATE(), INTERVAL 7 DAY) <= 你要判断的时间字段名 [html] view plain copy print? [html ...
分类:
数据库 时间:
2017-10-16 11:13:47
阅读次数:
231
周末需要做一个统计word文档字数的问题,刚开始以为很简单,因为之前做过excel表格相关的任务,所以认为利用扩展模块应该比较简单。 通过搜索,确实搜到了一个python操作word的模块,python-docx 通过命令安装:pip install python-docx 使用代码示例: #读取d ...
分类:
编程语言 时间:
2017-10-16 11:10:42
阅读次数:
377
正则表达式可以: ?测试字符串的某个模式。例如,可以对一个输入字符串进行测试,看在该字符串是否存在一个电话号码模式或一个信用卡号码模式。这称为数据有效性验证 ?替换文本。可以在文档中使用一个正则表达式来标识特定文字,然后可以全部将其删除,或者替换为别的文字 ?根据模式匹配从字符串中提取一个子字符串。... ...
分类:
编程语言 时间:
2017-10-16 11:06:48
阅读次数:
139
31w/m 43 Children always appreciate small gifts of money. Father, of course, provides a regular supply of pocket-money, but uncles and aunts are alway ...
分类:
其他好文 时间:
2017-10-16 09:43:57
阅读次数:
185
本实验采用了三种方法求素数,分别为:常规法、同余法以及筛选法,代码如下。 常规法: 1 void func1(int max) {//方法1:从2到根号n 2 bool m = true; 3 for (int i = 2; i <= max; i++) { 4 for (int j = 2; j ...
分类:
其他好文 时间:
2017-10-16 00:18:16
阅读次数:
232
A. Search for Pretty Integers You are given two lists of non-zero digits. Let's call an integer pretty if its (base 10) representation has at least on ...
分类:
其他好文 时间:
2017-10-15 21:30:23
阅读次数:
239
四象限法则如上图所示,我们将我们组的任务按照四象限法则进行了分类,明确了接下来要实现的目标。分类具体内容已上传github,网址如下: https://github.com/TJUMomonga/TheFifteenthGroup/blob/master/%E5%8D%81%E4%BA%94%E7% ...
分类:
其他好文 时间:
2017-10-15 19:35:48
阅读次数:
125
A series with same common difference is known as arithmetic series. The first term of series is 'a' and common difference is d. The series looks like ...
分类:
其他好文 时间:
2017-10-15 17:40:50
阅读次数:
201
一 JavaScript的基础 1.1 JS的引入方式 1.2 JS的变量、常量和标识符 1.2.1 JS的变量 1 2 3 x=5 y=6 z=x+y 1 2 3 x=5 y=6 z=x+y 1 2 3 x=5 y=6 z=x+y 1 2 3 x=5 y=6 z=x+y x=5 y=6 z=x+y ...
分类:
编程语言 时间:
2017-10-15 17:29:13
阅读次数:
190
自己移植从putty版本移植到Xshell的配色方案,效果不错,看上去挺舒服。 putty版本的配色方案- 效果图: ...
分类:
系统相关 时间:
2017-10-15 14:58:14
阅读次数:
265