``` def test(a, b, c=3): print(locals()) # 混用兩種,確保順序命名在前 test(c = 30, 1, 2) SyntaxError: positional argument follows keyword argument ``` ...
def test(a, b, c=3):
print(locals())
# 混用兩種,確保順序命名在前
test(c = 30, 1, 2)
SyntaxError: positional argument follows keyword argument