classexample(Scene):defconstruct(self):
text=TextMobject('This is the first raw. \\\ And this is the second raw.')
self.play(Write(text),run_time=5)
self.wait()
manim-TextMobject 换行class example(Scene): def construct(self): text=TextMobject(r'This is the first raw. \\\ And this is the second raw.') self.play(Write(text),run_time=5) ...