我只是意识到在使用with Python语句在Kivy中添加顶点指令的方式中有一些神秘的东西(至少对我而言).例如,使用的方式是这样的: ... some codeclass MyWidget(Widget) ... some code def some_method (self): with self.canvas: Rectangle