Python 针对Exec的raise NOTEImplementedError

Python 针对Exec的raise NOTEImplementedError,python,exec,raise,cvxopt,notimplementedexception,Python,Exec,Raise,Cvxopt,Notimplementedexception,我试图声明动态变量,以便使用cvxopt包求解线性方程,因此使用exec函数,如下所示: exec(代码),其中代码定义为x_约束=(最小(x1-4,0)+最小(x2-2,0)+最小 (x3-5,0)。。。

我试图声明动态变量,以便使用cvxopt包求解线性方程,因此使用exec函数,如下所示: exec(代码),其中代码定义为x_约束=(最小(x1-4,0)+最小(x2-2,0)+最小 (x3-5,0)。。。