1、**的作用首先是一个简单的例子,定义一个带有3个参数的函数def fun(a, b, c): print a, b, c这个函数可以使用多种方法进行调用fun(1,2,3)输出:1 2 3 fun...(1, b=4, c=6)输出:1 4 6 接下来使用**来进行函数调用,首先需要一个字典,就像使用*进行函数调用时需要列表或者元组一样d={'b':5, 'c':7}fun(1, **d)执行之后的输出为...1, b=3, c=5)输出是:a is 1 We expect kwargs 'b' and 'c' in this functionb is 3c is 5错误的调用