1.定积分 例1:求下列函数的定积分 代码如下: from sympy import * x = symbols('x') f = integrate(exp(-x), (x, 0, oo)) print(f) 运行结果: 2.不定积分 例1:求下列函数的不定积分 代码如下: from sympy