class list(object): """ list() -> new empty list list(iterable) -> new list initialized from iterable's items """ def append(self, p_object): # real s... ...
分类:
编程语言 时间:
2017-01-26 11:38:58
阅读次数:
221
In some countries building highways takes a lot of time... Maybe that's because there are many possiblities to construct a network of highways and eng ...
分类:
其他好文 时间:
2017-01-25 12:36:44
阅读次数:
217
思路1: 递归,如果 p = q, 那么判段 sameTree(p.left)==sameTree(q.left) and sameTree(p.right) = sameTree(q.right) 思路二: 如果两个树相同,说明按照一定的方式遍历这两个树,应该得到一样的结果。这里用的方法是使用st ...
分类:
其他好文 时间:
2017-01-25 07:44:44
阅读次数:
200
#!/usr/bin/env python # -*- coding=utf-8 -*- class ClassT1: # 定义类变量 __classVar = 0 # 定义构造函数 def __init__(self): ClassT1.__classVar += 1 # 定义set方法 def ... ...
分类:
编程语言 时间:
2017-01-25 00:56:48
阅读次数:
234
转载自http://jingyan.baidu.com/article/b24f6c82cf50e086bfe5dae9.html 转载自http://jingyan.baidu.com/article/b24f6c82cf50e086bfe5dae9.html 转载自http://jingyan. ...
分类:
其他好文 时间:
2017-01-24 20:06:20
阅读次数:
317
source filename 与 sh filename 及./filename执行脚本的区别在那里呢?1.当shell脚本具有可执行权限时,用sh filename与./filename执行脚本是没有区别得。./filename是因为当前目录没有在PATH中,所有"."是用来表示当前目录的。2. ...
分类:
系统相关 时间:
2017-01-24 15:53:34
阅读次数:
193
Paramiko paramiko模块,基于SSH用于连接远程服务器并执行相关操作。. 远程连接服务器执行上传下载 1 import paramiko 2 import uuid 3 4 class SSHConnection(object): 5 6 def __init__(self, host ...
分类:
编程语言 时间:
2017-01-22 13:32:02
阅读次数:
361
《零基础备考cfa》 零基础学习CFA课程在开始阶段最纠结的是学习方法。我之所以考了5年,主要是因为工作太忙了。更重要的是,没有做好计划,每次报名后备考都不充分。我在备考CFA之初在各大cfa论坛寻找应试方法。自己分析、尝试,但是一直没有找到特别适用的,毕竟各人的能力、时间、基础都不同。下面我想分享 ...
分类:
其他好文 时间:
2017-01-21 19:38:32
阅读次数:
238
<?php/** * Created by IntelliJ IDEA. * User: Administrator * Date: 2017/1/21 * Time: 14:16 * public,private,protected的区别 *public:权限是最大的,可以内部调用,实例调用等。 ...
分类:
其他好文 时间:
2017-01-21 14:59:39
阅读次数:
214
镇场诗: 诚听如来语,顿舍世间名与利。愿做地藏徒,广演是经阎浮提。 愿尽吾所学,成就一良心博客。愿诸后来人,重现智慧清净体。——————————————————————————————————————————code: result: ———————————————————————————————— ...
分类:
编程语言 时间:
2017-01-20 23:27:43
阅读次数:
486