我正在使用py openGL上下文,我的意思是它告诉我一个预期的缩进块,我应该在此块类TestContext(BaseContext)中使用什么字符:
“”“(动态确定的)BaseContext的子类,通过重写各种方法,我们可以自定义此上下文的功能,但是本教程并不要求我们这样做。”“”
该文档字符串必须也缩进。试试这个:
class TestContext(BaseContext):
"""A subclass of the (dynamically determined) BaseContext,
by overriding various methods, we could customize the functionality
of this context, but the tutorial doesn't ask us to do this.
"""
pass
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句