XML示例 <students> <student> <name>kellen</name> <pass>111111</pass> </student> <student> <name>wch</name> <pass>222222</pass> </student> </students> 有开
分类:
移动开发 时间:
2016-02-26 12:11:08
阅读次数:
224
When I mount CIFS on board, it encountered error as below: # mount -t cifs //192.168.1.28/98share /tmp -o user=name,pass=code CIFS VFS: Send error in
分类:
其他好文 时间:
2016-02-24 22:25:15
阅读次数:
180
一、isinstance 判断对象是否为类的实例 n1 = 10 print isinstance(n1,int) class A: pass class B(A): pass b= B() print isinstance(b,B) print isinstance(b,A) ==========
分类:
其他好文 时间:
2016-02-23 20:35:53
阅读次数:
218
(~ ̄▽ ̄)~* (注意下面代码中关于iterator的用法,此代码借鉴某大牛) #include #include #include #include using namespace std; struct Wall { int row;//表示墙在哪行 int left; int right; ...
分类:
其他好文 时间:
2016-02-23 18:55:41
阅读次数:
187
Reverse a linked list from position m to n. Do it in-place and in one-pass. For example:Given 1->2->3->4->5->NULL, m = 2 and n = 4, return 1->4->3->2-
分类:
其他好文 时间:
2016-02-22 17:15:12
阅读次数:
166
查看日志 /var/log/secure 查看vsFTPd配置 /etc/vsftpd/vsftpd.conf 密码过期时间设置 /etc/login.defs PASS_MAX_DAYS 99999 用户密码永不过期 chage -M 99999 username
分类:
其他好文 时间:
2016-02-18 01:23:41
阅读次数:
276
题意和思路都非常非常明确,直接读入->set->输出 然而,在读入上竟然出了问题 最早是是用的 string temp; scanf("%s",temp); printf("%s",temp); 这种写法,但是编译器报错,提示 error: cannot pass objects of non-tr
分类:
其他好文 时间:
2016-02-17 13:00:25
阅读次数:
182
题意:求q次询问的静态区间连续最大和起始位置和终止位置 输出字典序最小的解. 思路:刘汝佳白书 每个节点维护三个值 pre, sub, suf 最大的前缀和, 连续和, 后缀和 然后这个题还要记录解的位置所以还要区间总和sum 1 #include<iostream> 2 #include<stri
分类:
其他好文 时间:
2016-02-16 20:44:35
阅读次数:
202
今天,有个bug,因为这个导致的。唉,还是有欠缺啊,继续努力 https://www.zhihu.com/question/31203609/answer/50992895 首先,不要纠结于 Pass By Value 和 Pass By Reference 的字面上的意义,否则很容易陷入所谓的“一
分类:
编程语言 时间:
2016-02-16 15:00:11
阅读次数:
198
def home(name): print('你又来啦') print(name)def login(func): def inner(name): print('pass') return func(name) return innerdef login1(a,b): def inner(name
分类:
编程语言 时间:
2016-02-12 11:43:29
阅读次数:
230