1. find find pathname -options [-print -exec -ok] 让我们来看看该命令的参数: pathname find命令所查找的目录路径。例如用.来表示当前目录,用/来表示系统根目录。 -print find命令将匹配的文件输出到标准输出。 ...
分类:
系统相关 时间:
2015-06-19 20:09:11
阅读次数:
179
#include #include //查找该元素是否已经存在int find(char t[],int len,char ch){ int i; for(i = 0; i < len; i++) { if (t[i] == ch) { return 1; } } return 0;}ch...
分类:
其他好文 时间:
2015-06-19 18:42:13
阅读次数:
111
①修改密码的方法/**
* 修改密码
*/
public function actionPasswd(){
$userModel = User::model();
if(isset($_POST['User'])){ $userInfo = $userModel->find('username=:name', arra...
分类:
其他好文 时间:
2015-06-19 16:56:27
阅读次数:
126
#取字符串中两个符号之间的东东 def txt_wrap_by(self,start_str, end, html): start = html.find(start_str) if start >= 0: start += len(st...
分类:
编程语言 时间:
2015-06-19 16:43:28
阅读次数:
1237
Single Number II
Given an array of integers, every element appears three times except for one. Find that single one.
Note:
Your algorithm should have a linear runtime complexity. Could you...
分类:
其他好文 时间:
2015-06-19 15:22:12
阅读次数:
116
编辑距离和最长公共子串问题都是经典的DP问题,首先来看看编辑距离问题:问题描述Given two words word1 and word2, find the minimum number of steps required to convert word1 to word2. (each ope...
分类:
其他好文 时间:
2015-06-19 15:12:13
阅读次数:
118
1. ls -l
查看文件权限
ls -a
查看隐藏文件
2. cp -r
复制目录(cp只是复制文件)
cp -a
复制软连接要用到,复制文件的所有属性
3. chmod 777 -R ./
修改文件权限
chmod a+x
给文件添加可执行权限
4. find -r ./ -name "str.c"
在当前目录下查找文件名为s...
分类:
系统相关 时间:
2015-06-19 12:01:35
阅读次数:
177
if (GameObject.Find ("wuti"))
{
Destroy (GameObject.Find ("wuti"));
doorlight_bl.color = Color.red;
}
transform.FindChild("wuti").SendMessage("serips");
-------------------------------------
...
分类:
其他好文 时间:
2015-06-19 11:55:53
阅读次数:
106
Given an array of integers and an integer k, find out whether there there are two distinct indices i and j in the array such that nums[i] = nums[j] and the difference between i and j is at most k....
分类:
其他好文 时间:
2015-06-19 00:07:36
阅读次数:
108
Given a 2D binary matrix filled with 0's and 1's, find the largest square containing all 1's and return its area.
For example, given the following matrix:
1 0 1 0 0
1 0 1 1 1
1 1 1 1 1
1 0 0 1 0...
分类:
其他好文 时间:
2015-06-19 00:02:50
阅读次数:
170