You've already forked Core2forAWS-MicroPython
mirror of
https://github.com/m5stack/Core2forAWS-MicroPython.git
synced 2026-05-20 10:30:31 -07:00
25f5a30e73
Addresses issue #327.
14 lines
185 B
Python
14 lines
185 B
Python
# overriding default arguments
|
|
|
|
def foo(a, b=3):
|
|
print(a, b)
|
|
|
|
# override with positional
|
|
foo(1, 333)
|
|
|
|
# override with keyword
|
|
foo(1, b=333)
|
|
|
|
# override with keyword
|
|
foo(a=2, b=333)
|