这是 Python (及其它动态语言的) 的一个重要特性: 函数是一级对象(first-class objects), 也就是说你可以像传递其它变量一样传递它们。 正则表达式 正则表达式 (或 regexes ) 是通用的文本模式匹配的方法。
基于20个网页-相关网页
first-class objects
一流的对象
以上为机器翻译结果,长、整句建议使用 人工翻译 。
You can think of closure support as providing the ability to treat "blocks of code" as first class objects: pass them around, invoke them, and dynamically create new ones.
可以认为支持闭包就是提供将“代码块”作为第一级对象处理的能力:能够传递、调用和动态创建新的代码块。
youdao
应用推荐
模块上移
模块下移
不移动