Tmp/备忘

http://search.cpan.org/~agent/Cheater-0.10/lib/Cheater.pm

闭包(Closure)指携带着它们被定义所处的“环境”的函数。特别地说,一个闭包可以引用在它定义时可用的那些变量。

http://shiningray.cn/docs/ocaml/functional-programming

css框架

http://www.oschina.net/news/22591/36-css-frameworks-for-designers

http://turbine.peterkroener.de/index.php

http://easyframework.com

http://sd.csdn.net/a/20110823/303443.html

http://groups.google.com/group/webbase/browse_thread/thread/71f691bc0adcadf9#

http://groups.google.com/group/webbase/browse_thread/thread/76aab53999c12322#

你一定很奇怪Python如何给self赋值以及为何你不需要给它赋值。举一个例子会使此变得清晰。假如你有一个类称为MyClass和这个类的一个实例MyObject。当你调用这个对象的方法MyObject.method(arg1, arg2)的时候,这会由Python自动转为MyClass.method(MyObject, arg1, arg2)——这就是self的原理了。

《Learning Website Development with Django》

JPype

@classmethod
def from_iterable(iterables):
    # chain.from_iterable(['ABC', 'DEF']) --> A B C D E F
    for it in iterables:
        for element in it:
            yield element

python的双向字典:http://pypi.python.org/pypi/bidict

dict([(key, dt[key]) for key in sorted(dt.keys())])

猜你喜欢

转载自fnoodles.iteye.com/blog/1174837
tmp