各位,图片上的问题怎么解决呢?这是一个算法其中一个函数程序,customer.demands是一个变量。
因为你说了customer.demands只是一个变量,又不是数组array[5]这样你就可以用(id)去取其中第id个元素