Yıldızlı Parametre
This commit is contained in:
parent
8056ef7c95
commit
78f04c396f
16
python-temel/yildiz.parametre.py
Normal file
16
python-temel/yildiz.parametre.py
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
def foo(f):
|
||||||
|
print('foo')
|
||||||
|
|
||||||
|
def g(*args):
|
||||||
|
print('g')
|
||||||
|
f(*args)
|
||||||
|
|
||||||
|
return g
|
||||||
|
|
||||||
|
@foo
|
||||||
|
def bar(a, b, c):
|
||||||
|
print(f'bar: {a}, {b}, {c}')
|
||||||
|
|
||||||
|
bar(10, 20, 30)
|
||||||
|
bar(50, 60, 70)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user