mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-20 11:30:18 +00:00
Update _exception.py
This commit is contained in:
parent
e13d21bcfb
commit
5faf7bbc6c
@ -24,4 +24,21 @@ def f():
|
|||||||
print("PASS 03")
|
print("PASS 03")
|
||||||
assert True
|
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")
|
Loading…
x
Reference in New Issue
Block a user