会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
2020不在低调
博客园
首页
新随笔
联系
订阅
管理
2024年9月3日
python回调函数,闭包,派生
摘要: 回调函数:传入函数名称,在函数内调用该函数,传参,在特定的地方执行 def sum(a,b,callback): c = a+b callback(c) def s_print(msg): print("callback:%s"%msg) def s_print2(msg): print("call
阅读全文
posted @ 2024-09-03 17:34 2020不在低调
阅读(49)
评论(0)
推荐(0)
公告