在运行时,我有代码应该正确地使用拉格朗日乘数来找到函数的最大值/最小值:syms x y L; g = x^2+5*y^2+2*y^2-10firstpart=jacobian(f,[x y])-L*jacobian(g,[x y]);
使用sym.getEqnsVars>checkVariables错误(第92行)第二</
input("Enter number of players: "))
while (players < 2 or players > 10): #Limits number of players to 2-Players should be 2-10 only.Please enter scores again separated by space: 如你所见,第三次我已经输入了1 2 3,但它仍然显示错误。