做一个技术girl

导航

2018年11月29日 #

八、函数、闭包、装饰器

摘要: 一、函数对象 二、闭包 1. 什么是闭包函数 闭函数: 该函数一定是定义在函数内的函数 包函数: 该内部函数包含对外层函数作用域名字的引用 def outter(): x=111 def inner(): print(x) return inner f=outter() x=22222 f()2. 阅读全文

posted @ 2018-11-29 19:48 戚戚~ 阅读(130) 评论(0) 推荐(0) 编辑