LinExpr.getConstant ()


LinExpr.getConstant ()

getConstant( )

从线性表达式中检索常数项。

返回值:

常数的表达式。

使用示例:

e = 2 * x + 3 print(e. getconstant ())