---
title: "在 Python 中使用 OfficeMath"
---


现在使用 OfficeMath 类型对象更加方便。在 Aspose.Words 中，客户可以轻松地进行 Justify，还可以管理方程是内联显示还是单独行显示。更重要的是，随着 [MathObjectType](https://reference.aspose.com/words/python-net/aspose.words.math/mathobjecttype/) 的可用性；可以通过使用此矩阵对象来实现有用的控件。

以下代码示例展示了如何使用这些属性：

{{< gist "aspose-words-gists" "e9d8f984dac599756ccb4a64b8c79768" "Examples-DocsExamples-DocsExamples-Programming with Documents-Working with Graphic Elements-working_with_office_math-MathEquations.py" >}}
