latexify py用于生成LaTeX数学公式的Python库.LaTeX是一种基于ΤΕΧ 的排版系统对于展示复杂的数学公式表现极为出色.该项目可以用Python函数轻松生成复杂的LaTeX数学公式描述.import math import latexify latexify.with latex def solve a b c return b math.sqrt b24ac2a print solve143print solve输出如下1.0mathrm solve a b c triangleq frac b sqrt b24ac2a