[python] 포인터 *args, **kwargs 사용법
>>> def sample(a, b, *args): ... print('a', a) ... print('b', b) ... print('args:', args) ... >>> sample(1,2) a 1 b 2 args: () >>> >>> sample(1,2, 3) a 1 b 2 args: (3,) >>> sample(1,2, 3, 4) a 1 b 2 args: (3, 4) >>> def sample2(a, b, **kwargs): ... print('a', a) ... print('b', b) ... print('kwargs', kwargs) ... >>> sample2(1,2, 3) Traceback (most recent call last): File "", line 1, in TypeError:..