locals
This commit is contained in:
parent
87b25fc45c
commit
647140044d
14
python-temel/locals.py
Normal file
14
python-temel/locals.py
Normal file
|
@ -0,0 +1,14 @@
|
|||
def foo():
|
||||
y = 20
|
||||
|
||||
def bar():
|
||||
z = 30
|
||||
d = locals()
|
||||
print(d)
|
||||
|
||||
d = locals()
|
||||
print(d)
|
||||
|
||||
bar()
|
||||
|
||||
foo()
|
Loading…
Reference in New Issue
Block a user