📜  python 你可以尝试在列表理解中除外 - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:29.806000             🧑  作者: Mango

代码示例1
def catch(func, *args, handle=lambda e : None, **kwargs):  
     try:  
         return func(*args, **kwargs)  
     except Exception as e:  
         return handle(e)