异常信息

可以快速上手的开发文档

#异常信息

python打印异常信息的两种实现方式

1.直接打印错误try:#yourcodeexceptKeyboardInterrupt:print("quit")exceptExceptionasex:print("出现如下异常%s"%e..