whereis <程序名称> find [路径] <表达式> locate <文件名称> 从文件内容查找匹配指定字符串的行: $ grep "被查找的字符串" 文件名 从文件内容查找与正则表达式匹配的行: $ grep –e “正则表达式” 文件名 查找时不区分大小写: $ grep –i "被查找 ...
分类:
系统相关 时间:
2016-11-16 02:20:31
阅读次数:
166
WebElement frame1 = driver.findElement(By.xpath("/html/body/div[9]/div[2]/div/iframe"));driver.switchTo().frame("frame1"); 不能使用by.name,是动态显示的。 ...
分类:
其他好文 时间:
2016-11-15 23:52:12
阅读次数:
364
kruskal 时间复杂度 O(|E| * log|V|) 按权值顺序依次判断,如果不产生圈则放进去 时间主要用在边的排序 代码来自《挑战编程》 ...
分类:
其他好文 时间:
2016-11-15 23:12:40
阅读次数:
157
在golang中可以使用time.Time数据类型来保存mongodb中的ISODate时间。gtypeModelstruct{
uploadDatetime.Time`bson:"uploadDate"`
}
m:=Model{}
iferr:=c.Find(nil).Select({"_id":0,"uploadDate":1}).One(&m);err!=nil{
fmt.Printf("failedtofinddate,error%s\n",err)
os...
分类:
数据库 时间:
2016-11-15 21:13:25
阅读次数:
261
You have a total of n coins that you want to form in a staircase shape, where every k-th row must have exactly k coins. Given n, find the total number ...
分类:
其他好文 时间:
2016-11-15 14:34:57
阅读次数:
201
A peak element is an element that is greater than its neighbors. Given an input array where num[i] ≠ num[i+1], find a peak element and return its inde ...
分类:
其他好文 时间:
2016-11-15 13:24:58
阅读次数:
178
1. login ssh fetch@<robot ip or robot name> 2. set robot master modify .bashrc in robot's computer using ssh export ROS_MASTER_URI=http://<robot ip or ...
分类:
其他好文 时间:
2016-11-15 10:46:45
阅读次数:
186
传送门 Description I hope you know the beautiful Union-Find structure. In this problem, you’re to implement something similar, but not identical. The dat ...
分类:
其他好文 时间:
2016-11-15 01:04:22
阅读次数:
162
传送门 Find them, Catch them Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 42463 Accepted: 13065 Description The police office in Tadu City ...
分类:
其他好文 时间:
2016-11-15 01:03:04
阅读次数:
225
bzoj1529[POI2005]ska Piggy banks 【题目大意】 n头奶牛m种语言,每种奶牛分别掌握一些语言。问至少再让奶牛多学多少种语言,才能使得它们能够直接或间接交流? 【思路】 (n+m)个点,奶牛学会某种语言就合并它和语言的节点。并查集维护联通块,答案为联通块个数-1。水,可是 ...
分类:
其他好文 时间:
2016-11-15 00:41:18
阅读次数:
193