kwargs 和預設值

使用** kwargs 的預設值

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

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