会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
最冷不过冬夜
博客园
首页
新随笔
联系
订阅
管理
2020年6月17日
2020 python学习第十三天————函数嵌套,名称空间与作用域和闭包函数
摘要: 1.1 函数嵌套定义 在一个函数内又定义了另外一个函数 def f1(): def f2(): f1() res = f1() print(res) 1.2 函数嵌套调用 在调用一个函数的过程中又调用了其他函数 def max2(x, y): if x > y: return x def max4(
阅读全文
posted @ 2020-06-17 18:09 最冷不过冬夜
阅读(129)
评论(0)
推荐(0)
编辑
公告