You've already forked Core2forAWS-MicroPython
mirror of
https://github.com/m5stack/Core2forAWS-MicroPython.git
synced 2026-05-20 10:30:31 -07:00
539681fffd
From now on, all new tests must use underscore. Addresses issue #727.
23 lines
352 B
Python
23 lines
352 B
Python
def f():
|
|
x = 1
|
|
y = 2
|
|
def g():
|
|
nonlocal x
|
|
print(y)
|
|
try:
|
|
print(x)
|
|
except NameError:
|
|
print("NameError")
|
|
def h():
|
|
nonlocal x
|
|
print(y)
|
|
try:
|
|
del x
|
|
except NameError:
|
|
print("NameError")
|
|
print(x, y)
|
|
del x
|
|
g()
|
|
h()
|
|
f()
|