from sympy import *
x = symbols('x')
print(integrate(x, (x, 1, 2)))
integrate(函数,(变量,下限, 上限))
不定积分
H=integrate(函数,变量)
H = integrate(f,x)
注:要先定义一个符号x