except IndexError as e: print(e) except KeyError as e: print(e) except ValueError as e: print(e) except Exception as e: print(e) 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 5.异常的其他机构(try...finally语法) try...finally语句