yalnızca isimli ve yalnızca pozisyonel olarak kullanılabilen argümanlar 1
This commit is contained in:
parent
817281eb31
commit
aa685e666c
5
python-temel/arguman.py
Normal file
5
python-temel/arguman.py
Normal file
|
@ -0,0 +1,5 @@
|
|||
def foo(a, b, *, c, d):
|
||||
print(a, b, c, d)
|
||||
|
||||
foo(10, 20, c = 10, d = 20) #geçerli
|
||||
foo(10, 20, d = 20, c = 20) #geçerli
|
Loading…
Reference in New Issue
Block a user