isimli argüman
This commit is contained in:
parent
edbf11107d
commit
70d9e1237f
7
python-temel/isimli.arguman.py
Normal file
7
python-temel/isimli.arguman.py
Normal file
|
@ -0,0 +1,7 @@
|
|||
def foo(*a, b):
|
||||
print('a = {}, b = {}'.format(a, b))
|
||||
|
||||
foo(10, b = 100) # a = (10,), b = 100
|
||||
foo(10, 20, b = 100) # (10, 20), b = 100
|
||||
foo(10, 20, b = 100) # (10, 20), b = 100
|
||||
#foo(10, 20, 30) # geçerli değil! b değer almamış
|
Loading…
Reference in New Issue
Block a user