micropython: add micropython component
This commit is contained in:
11
components/language/micropython/tests/basics/try1.py
Normal file
11
components/language/micropython/tests/basics/try1.py
Normal file
@@ -0,0 +1,11 @@
|
||||
# basic exceptions
|
||||
x = 1
|
||||
try:
|
||||
x.a()
|
||||
except:
|
||||
print(x)
|
||||
|
||||
try:
|
||||
raise IndexError
|
||||
except IndexError:
|
||||
print("caught")
|
Reference in New Issue
Block a user