• Author tyran Date 17 11 13 异常处理 try 代码逻辑 只要其中任意一行报错都会被捕捉 i int aaa print i except Exception as e 如果出错执行 捕捉错误 print e inv