Python-100-Days/Day01-15/Day11/code/ex4.py

25 lines
174 B
Python
Raw Normal View History

2018-04-27 00:00:22 +08:00
"""
引发异常和异常栈
Version: 0.1
Author: 骆昊
Date: 2018-03-13
"""
def f1():
raise AssertionError('发生异常')
def f2():
f1()
def f3():
f2()
f3()