Monthly Archives: August 2011

java程序员学php – 8. 神奇的extract()

声明这样一个关联数组:   $map[‘BJ’] = ‘Beijing’;   $map[‘SH’] = ‘Shanghai’; 然后做一下extract($map), 你就可以自动获得 $BJ 和 $SH这两个变量,它们的值分别为Beijing和Shanghi。 也就是说,extract替你编程了。这在Java语言里还是很难想象的。

动/静态类型和强/弱类型

摘自"Dive into Python" statically typed language     A language in which types are fixed at compile time. Most statically typed languages enforce this by requiring you to declare all variables with their datatypes before using them. Java and C are statically typed languages. dynamically typed language     A language in which types are discovered at […]