Where c is the default parameters, when no input c, c=a + b
In c and MATLAB through function overloading is easy to implement, but Python does not allow overloading, does not allow the default parameters direct call, the undefined error parameters, consult how to solve, thank you!
CodePudding user response:
Def function (a, b, c=None) :If (c==None) :
C=a + b