python给回调函数传参数

 

 https://www.cnblogs.com/wxys/p/13756552.html

https://blog.csdn.net/qq_1290259791/article/details/84930850

 

 

partial
from functools import partial


add_callback(partial(self.on_send_success, item))

 

posted @ 2021-09-02 10:46  AngDH  阅读(834)  评论(0编辑  收藏  举报