LinExpr.size ()


LinExpr.size ()

大小( )

检索线性表达式中的项数(不包括常数)。

返回值:

表达式中的项数。

使用示例:

E = x + 2 * y + 3 print(E .size())