📅  最后修改于: 2022-03-11 14:46:29.806000             🧑  作者: Mango
def catch(func, *args, handle=lambda e : None, **kwargs):
try:
return func(*args, **kwargs)
except Exception as e:
return handle(e)