定义一个简单的异常类: `class myException(Exception): pass` 定义一个函数 def f1(): try: print(1/0) except: raise myException('my exception') 运行f1() Traceback (most recent call last): File "", line 3, in f1 ZeroDivisionError: division by zero During handling of the above exception, another exception occurred: Traceback (most recent call last): File "", line 1, in File "", line 5, in f1 __main__.myException: my exception 写一段代码调用f1(): try: f1() except myException as e: print(e) 为何输出结果仅仅有 my exception 下面这些信息为何不出现? Traceback (most recent call last): File "", line 3, in f1 ZeroDivisionError: division by zero During handling of the above exception, another exception occurred: Traceback (most recent call last): File "", line 1, in File "", line 5, in f1 __main__.myException: my exception