Python:如何访问函数中数组参数的元素?考虑这个最小的例子: def arfunc(x,*a): sa=a[1] return sa b=arfunc(1.,(5.,2.)) print(b) 我需要传递一个数组,它的长 ...2024-06-26 已阅读: n次
如何访问函数中数组参数的元素?考虑这个极小的例子: def arfunc(x,*a): sa=a[1] return sa b=arfunc(1.,(5.,2.)) print(b) 我需要传递一个数组,该数组 ...2024-06-26 已阅读: n次