【发布时间】:2017-07-23 19:04:17
【问题描述】:
假设我在 2 个变量中有以下函数 -
def banana(x,y):
return exp(((-x**2/200))-0.5*(y+0.05*(x**2) - 100*0.05)**2)
我想把它写成 -
def banana(x):
这里的 x 是两个变量的向量;可以吗?
感谢您的帮助!
【问题讨论】:
标签: python arguments function-prototypes argument-unpacking