LinExpr.getCoeff ()


LinExpr.getCoeff ()

getCoeff(我)

从表达式的单个项检索系数。

返回值:

指数项的系数的表达式。

使用示例:

e = x + 2 * y + 3 print(e. getcoeff (1))