micropython/tests/basics/closure-defargs.py

9 wiersze
96 B
Python

def f():
a = 1
def bar(b = 10, c = 20):
print(a + b + c)
bar()
print(f())