当我们必须处理异常时,引发异常有什么意义?是因为引发异常允许您创建自己定义的异常吗?
except: raise ZeroDivisionError
对比
except ZeroDivisionError: #code
python
python ×1