python 函数 默认参数 def add(a=1, b=2): # a,b设置默认参数 c = a + b return c c = add(a=2) # 如果不填,就是默认参数 print(c) 4