Django Book 翻译
菜单>:
TOC
返回
原文:
Note that, in this example, we passed the ``current_datetime`` view function as an object without calling the function. This is a key feature of Python (and other dynamic languages): functions are first-class objects, which means you can pass them around just like any other variables. Cool stuff, eh?
翻译:
注意,该例中,我们将 ``current_datetime`` 视图函数作为对象传递,而不是调用它。这是 Python (及其它动态语言的) 的一个重要特性:函数是一级对象(first-class objects), 也就是说你可以像传递其它变量一样传递它们。很酷吧?
备注:
译者: