Skip to content

Commit f959fc1

Browse files
committed
*args和**kwargs可变参数的区别
1 parent f6a84bb commit f959fc1

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

args_kwargs.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
def alias(*args, **kwargs):
2+
print('args=', args)
3+
print('kwargs=', kwargs)
4+
5+
alias(3, 23, 3, 3,a='hello',b=3,c='C')

0 commit comments

Comments
 (0)