One - One Code All

Blog Content

python异常处理try-except Exception as e

Python   2009-04-18 09:26:35
def main():
     try
        pass
     except Exception as e:
        print('Error:',e)
     finally:
        print('code')



上一篇:性空幻有金刚经
下一篇:python判断字典列表元组为非空

The minute you think of giving up, think of the reason why you held on so long.