Blueherb In solitude, where we are least alone
摘要: 闭包函数 一、什么是闭包? 闭包指的是:函数内部函数对外部作用域而非全局作用域的引用。 def outter(): x = 1 def inner(): print(x) return inner f = outter() def f2(): x = 2 f() f2() 1 1.1 两种为函数传参 阅读全文
posted @ 2019-08-12 20:18 奏乐乐章 阅读(109) 评论(0) 推荐(0) 编辑