更新
This commit is contained in:
24
Python-100-Days/Day01-15/Day11/ex4.py
Normal file
24
Python-100-Days/Day01-15/Day11/ex4.py
Normal file
@@ -0,0 +1,24 @@
|
||||
"""
|
||||
|
||||
引发异常和异常栈
|
||||
|
||||
Version: 0.1
|
||||
Author: 骆昊
|
||||
Date: 2018-03-13
|
||||
|
||||
"""
|
||||
|
||||
|
||||
def f1():
|
||||
raise AssertionError('发生异常')
|
||||
|
||||
|
||||
def f2():
|
||||
f1()
|
||||
|
||||
|
||||
def f3():
|
||||
f2()
|
||||
|
||||
|
||||
f3()
|
||||
Reference in New Issue
Block a user