Python 回调示例
def save(func, args):
print(r'a {}, b {}'.format(a, b))
func(args)
def callback_post_save(value1):
print(r'run post callback values {}'.format(value1))
if __name__ == "__main__":
a = 10
b = 20
value1 = 30
value2 = 40
value3 = 50
save(callback_post_save, value1)