摘要: 函数的嵌套 python的函数支持内嵌,即在函数中定义函数 >>> def fun1(): print('fun1()正在被调用') def fun2(): print('fun2()正在被调用') fun2() >>> fun1() fun1()正在被调用 fun2()正在被调用 内嵌函数的作用域 阅读全文
posted @ 2016-03-07 23:11 林间 阅读(2119) 评论(0) 推荐(1) 编辑