Pythonで、引数の色々な渡し方
def test(A, B, C): print A, B, C test(1, 2, 3) test(4, C=6, B=5) d = { 'A':7, 'B':8, 'C':9 } test(**d) e = dict( A=10, B=11, C=12 ) test(**e) # result # 1 2 3 # 4 5 6 # 7 8 9 # 10 11 12
def test(A, B, C): print A, B, C test(1, 2, 3) test(4, C=6, B=5) d = { 'A':7, 'B':8, 'C':9 } test(**d) e = dict( A=10, B=11, C=12 ) test(**e) # result # 1 2 3 # 4 5 6 # 7 8 9 # 10 11 12