def construct(self):
    text = TextMobject('欧拉公式')
    tex = TexMobject('\\mathrm{e}^{\\mathrm{i}\\pi} + 1 = 0', color=GREEN)
    self.play(FadeIn(text))
    self.wait(0.5)
    self.play(ReplacementTransform(text, tex))
    self.wait(1)
def construct(self):
    text = TextMobject('欧拉公式')
    tex = TexMobject('\\mathrm{e}^{\\mathrm{i}\\pi} + 1 = 0', color=GREEN)
    self.play(FadeIn(text))
    self.wait(0.5)
    self.play(ReplacementTransform(text, tex))
    self.wait(1)