“overloading” variables when defining functions in Python

后端 未结 0 992
你的背包
你的背包 2020-12-02 13:46

In Python it is possible to "reuse" variable names in function definitions. For example, one can define the function f(x,y) = x^2 + y as follows:

d         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题