CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
jackfrued

CoCalc provides the best real-time collaborative environment for Jupyter Notebooks, LaTeX documents, and SageMath, scalable from individual users to large groups and classes!

GitHub Repository: jackfrued/Python-100-Days
Path: blob/master/Day01-15/code/Day11/ex4.py
Views: 729
1
"""
2
引发异常和异常栈
3
4
Version: 0.1
5
Author: 骆昊
6
Date: 2018-03-13
7
"""
8
9
10
def f1():
11
raise AssertionError('发生异常')
12
13
14
def f2():
15
f1()
16
17
18
def f3():
19
f2()
20
21
22
f3()
23
24