阅读背景:

在Python中,我可以根据其他参数指定函数参数的默认值吗?

来源:互联网 

Suppose I have a python function that takes two arguments, but I want the second arg to be optional, with the default being whatever was passed as the first argument. So, I want to do something like this:Suppose I have a python function that takes two




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: