return example
This commit is contained in:
parent
59bd5291a7
commit
17f523c730
10
python-temel/return.example.py
Normal file
10
python-temel/return.example.py
Normal file
|
@ -0,0 +1,10 @@
|
|||
def foo(a):
|
||||
x = a
|
||||
def bar():
|
||||
print(x)
|
||||
return bar
|
||||
|
||||
f = foo(10)
|
||||
f()
|
||||
foo(20)
|
||||
f()
|
Loading…
Reference in New Issue
Block a user