fonksiyon ve argüman örnekleri
This commit is contained in:
parent
9f80640d6a
commit
76748892f2
|
@ -0,0 +1,4 @@
|
|||
def foo(a, b, c, d, e, f):
|
||||
print('a = {}, b = {}, c = {}, d = {}, e = {}, f = {}'.format(a, b, c, d, e, f))
|
||||
|
||||
foo(10, 20, e = 30, *(40, 50), f = 60)
|
|
@ -0,0 +1,4 @@
|
|||
def foo(a, b, c, d, e, f):
|
||||
print('a = {}, b = {}, c = {}, d = {}, e = {}, f = {}'.format(a, b, c, d, e, f))
|
||||
|
||||
foo(10, e=50, *(30, 40), **{'d':100, 'f': 200})
|
|
@ -0,0 +1,5 @@
|
|||
def foo(a, b, c, d, e, f):
|
||||
print('a = {}, b = {}, c = {}, d = {}, e = {}, f = {}'.format(a, b, c, d, e, f))
|
||||
|
||||
|
||||
foo(10, 20, *[40], **{'d':100}, **{'e':200, 'f': 300})
|
Loading…
Reference in New Issue