我们都知道kwargs是变长kv参数,能否将dict转换成kwargs。
在python调用函数的时候func(**{'type'='event'}),可以将dict转化为kwargs。
func(**{'type'='event'})