kwargs 和默认值

使用** kwargs 的默认值

def fun(**kwargs):
    print kwargs.get('value', 0)

fun()
# print 0
fun(value=1)
# print 1