Python在heap中分配的对象分成两类:可变对象和不可变对象。所谓可变对象是指,对象的内容是可变的,例如list。而不可变的对象则相反,表示其内容不可变。
不可变对象:int,string,float,tuple 可变对象 :list,dictionary 一、不可变对象 由于Python中的变...
分类:
编程语言 时间:
2014-05-13 20:07:37
阅读次数:
481
create or replace function get_sal1(id
employees.employee_id%type) return number is sal employees.salary%type;begin sal
:= 0; select salary into s...
分类:
数据库 时间:
2014-05-13 19:41:58
阅读次数:
456
在python中所有都是对象,在python中只有list和dict是可变对象,其他都是不可变对象。具体参照:http://www.cnblogs.com/lovemo1314/archive/2012/07/18/2597111.html
分类:
编程语言 时间:
2014-05-13 18:44:31
阅读次数:
283
转自Ibm:Name mangling is the encoding of function and
variable names into unique names so that linkers can separate common names in
the language. Type n...
分类:
编程语言 时间:
2014-05-13 18:18:53
阅读次数:
421
函数声明: function aaa(){}
有预解析,在if...else...分别调用不同的函数,要采用函数表达式的形式函数表达式: var a = function aaa(){} 命名函数表达式
var a = function (){} 匿名函数表达式 (function aaa...
分类:
其他好文 时间:
2014-05-13 18:06:32
阅读次数:
293
http://virtualenv.readthedocs.org/en/latest/
分类:
编程语言 时间:
2014-05-13 18:00:19
阅读次数:
241
一、Python的标准类型(1)bool型>>>
bool("")False>>> bool(None)False>>>
bool(False)False(2)数值型Python的数值型数据包含两类:int和float型数据,需要注意的是还有一个complex的类型,也就是复数类型>>>
a = c...
分类:
Web程序 时间:
2014-05-13 17:49:08
阅读次数:
436
excel是很常用的表格工具。不过,对程序员来说,这可不是件好事件。因为excel的数据既不像txt那样,随意一种语言、脚本,写个函数就能把数据读出来分析。也不像JSON这种开源的数据格式,有N多的开源库来读取。就算没有,知道数据格式,自己写个库也自己用不至于太难。
要想读取excel的数据,...
分类:
编程语言 时间:
2014-05-13 17:31:43
阅读次数:
332
第一次写博客,大家多多关照!欢迎拍砖哦! 我也刚学设计模式,所以记录下来。 $name))
$this->$name=$value; } public function __get($name){
if(isset($this->$name)) return $this->$name;...
分类:
Web程序 时间:
2014-05-13 16:44:27
阅读次数:
390
Python-求助 SAE 如何使用第三方库? - 德问:编程社交问答求助 SAE 如何使用第三方库?
分类:
编程语言 时间:
2014-05-13 11:04:02
阅读次数:
262