Update _exception.py

This commit is contained in:
blueloveTH 2023-02-05 21:44:07 +08:00
parent e13d21bcfb
commit 5faf7bbc6c

View File

@ -24,4 +24,21 @@ def f():
print("PASS 03")
assert True
f()
f()
def f1():
try:
assert 1 + 2 == 3
try:
a = {1: 2, 3: 4}
x = a[0]
except A:
print('<?>')
except B:
print('<?>')
print('<?>')
try:
f1()
except KeyError:
print("PASS 04")