您可以在sympy.init_printing中设置forecolor和backcolor选项。例如,要将方程式打印为蓝色,请使用:In [1]: init_printing(forecolor="Blue")