Yıldızlı Parametre

This commit is contained in:
Mert Gör 🇹🇷 2023-08-05 16:12:52 +03:00
parent 8056ef7c95
commit 78f04c396f
No known key found for this signature in database
GPG Key ID: 2100A876D55B39B9

View 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)