-
Notifications
You must be signed in to change notification settings - Fork 0
/
abcTraceback.py
39 lines (30 loc) · 1.02 KB
/
abcTraceback.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# def a():
# print("Start of a()")
# b() # b() 함수 호출
# def b():
# print("Start of b()")
# c() # c() 함수 호출
# def c():
# print("Start of c()")
# 42 / 0 # 이 식은 0으로 나누기 에러를 발생시킴
def a():
press = "press"
print(len(press))
a() # a() 함수 호출
# Start of a()
# Start of b()
# Start of c()
# Traceback (most recent call last):
# File "C:\Users\bangm\OneDrive\바탕 화면\clean_code_python\abcTraceback.py", line 13, in <module>
# a() # a() 함수 호출
# ^^^
# File "C:\Users\bangm\OneDrive\바탕 화면\clean_code_python\abcTraceback.py", line 3, in a
# b() # b() 함수 호출
# ^^^
# File "C:\Users\bangm\OneDrive\바탕 화면\clean_code_python\abcTraceback.py", line 7, in b
# c() # c() 함수 호출
# ^^^
# File "C:\Users\bangm\OneDrive\바탕 화면\clean_code_python\abcTraceback.py", line 11, in c
# 42 / 0 # 이 식은 0으로 나누기 에러를 발생시킴
# ~~~^~~
# ZeroDivisionError: division by zero