模型类 编写模型类 现在我们来正式编写这个模型类。首先导入pyglet中OpenGL 到函数以及deque队列。 from pyglet.gl import * from collections import deque 然后是模型类的主体: class Model: def __init__(self): self.batch = pyglet