LinExpr.size ()


LinExpr.size ()

大小( )

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

返回值:

表达式中的项数。

使用示例:

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