mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-20 19:40:18 +00:00
Update _exception.py
This commit is contained in:
parent
e13d21bcfb
commit
5faf7bbc6c
@ -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")
|
Loading…
x
Reference in New Issue
Block a user