是指函数中嵌套函数 且外层函数的返回值也是函数 闭包中需要注意的是变量的作用域,内层函数使用外层函数的值需要加nolocal 使用全局变量的值需要加global
posted on 2019-06-09 20:46 薛威宁 阅读(68) 评论(0) 收藏 举报