【发布时间】:2013-11-24 06:15:21
【问题描述】:
我的问题是针对 matlab 函数的第一行
function [a, b, c, d] = somefunction(arg1, arg2, arg3)
% Some mangoes and pears
end
特别是在该等式的左侧。这样,matlab(我认为?)确保输出是那个向量。我知道在 Python 中,您可以通过将计算结果组合成一个数组来实现相同的目的。有没有办法可以在 python 中获得这种“快捷方式”方法?像这样(但显然不完全是这样):
def somefunction(arg1,arg2,arg3) = [a, b, c, d]:
# some apples and bananas
【问题讨论】: