Update _exception.py

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

View File

@ -25,3 +25,20 @@ def f():
assert True
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")