由于项目需要,涉及到富文本的处理。百度了下,发现已经有人总结的很全了。 大概思路如下: 1.switch_to_frame 2.find_element_by_tag_name('body').send_keys("123") 链接:http://blog.csdn.net/huilan_same/ ...
分类:
其他好文 时间:
2016-09-20 19:36:46
阅读次数:
215
1.从磁盘使用统计中排除部分文件du--exclude“*.iso”dir2.找出指定目录中最大的10个文件find-typef-execdu-k{}\;|sort-nrk1|head-n103.列出当前系统最长用的10条命令cat.bash_history|awk‘{print$1}‘|sort|uniq-c|sort-nr|head-104.统计所有进程所占的常驻内存ps-eorss|awk‘BE..
分类:
系统相关 时间:
2016-09-20 18:20:09
阅读次数:
318
GIT工具是依靠文件来识别文件夹的,对于空的文件夹是不能识别的。因此如果需要在代码中增加一个空文件夹,同时需要在文件夹中增加一个空文件.gitkeep 当批量增加空文件夹时,可以在GIT库的根目录下输入命令行find . \( -type d -empty \) -and \( -not -rege ...
分类:
Web程序 时间:
2016-09-20 13:41:19
阅读次数:
256
查询MasterID大于1且MasterType等于TestType的文档: db.SysCore.find({$and:[{"MasterID":{$gt:1}},{"MasterType":"TestType"}]}).pretty() 结果如下: 查询MasterID不等于2且MasterNa ...
分类:
其他好文 时间:
2016-09-20 13:29:35
阅读次数:
129
OR查询包含:$or和$in $or可以在多个键中查询任意给定的值;$in可以指定不同类型的条件和值。 查询MasertID小于3或者MasterSort等于3的文档: db.SysCore.find({$or:[{"MasterID":{$lt:3}},{"MasterSort":3}]}).pr ...
分类:
其他好文 时间:
2016-09-20 12:04:18
阅读次数:
142
db.SysCore.find({"MasterID":5},{"_id":0,"MasterName":1}) 第一个是查询的条件 第二个是查询的字段,如果不指定“_id”:0,结果中会出现_id字段。0表示不包含,1表示包含。 查询结果如下: 只显示需要的MasterName字段。 ...
分类:
其他好文 时间:
2016-09-20 12:03:12
阅读次数:
109
题目: Given an array of integers, every element appears three times except for one. Find that single one. Your algorithm should have a linear runtime co ...
分类:
其他好文 时间:
2016-09-20 11:50:06
阅读次数:
153
find命令用来在指定目录下查找文件。任何位于参数之前的字符串都将被视为欲查找的目录名。如果使用该命令时,不设置任何参数,则find命令将在当前目录下查找子目录与文件。并且将查找到的子目录和文件全部进行显示。 语法 find(选项)(参数) 实例 根据文件或者正则表达式进行匹配 1.列出当前目录及子 ...
分类:
其他好文 时间:
2016-09-20 10:31:43
阅读次数:
174
Given a string S, find the longest palindromic substring in S. You may assume that the maximum length of S is 1000, and there exists one unique longes ...
分类:
其他好文 时间:
2016-09-20 06:49:11
阅读次数:
141
Given a non-empty binary search tree and a target value, find the value in the BST that is closest to the target. Note: Given target value is a floati ...
分类:
其他好文 时间:
2016-09-20 01:41:32
阅读次数:
149