python - **kwargs

** 实际上将一个字典展开,比如 dic = {'a': 1, 'b': 2, 'c': 3}

fun(**dic) 等价于 fun(a=1,b=2,c=3)

 

 

posted @ 2021-11-12 16:25  neuralNerd  阅读(27)  评论(0)    收藏  举报