0
我使用吡啶的OpenGL上下文,我的是,它告诉我,一个期望的缩进块,我应该与此块 类的TestContext(BaseContext)使用的字符:的Python + OpenGL上下文缩进块
“”” (动态确定的)BaseContext的一个子类,通过覆盖各种方法,我们可以定制这个上下文的功能,但是教程并不要求我们这样做。“”“”
我使用吡啶的OpenGL上下文,我的是,它告诉我,一个期望的缩进块,我应该与此块 类的TestContext(BaseContext)使用的字符:的Python + OpenGL上下文缩进块
“”” (动态确定的)BaseContext的一个子类,通过覆盖各种方法,我们可以定制这个上下文的功能,但是教程并不要求我们这样做。“”“”
docstring还需要缩进。试试这个:
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
感谢ü非常多的帮助,但PLZ你能告诉我怎么ü做到这件事我试图用“””完成它,却徒劳无功 – user3140711
我不明白你问什么...什么是不工作? – skamsie
只是我写了同样的事情,我完成了与“”“的文本,并按下控制台中的输入,它告诉我,预期的打算... 我不明白什么是我使用的问题PYthon 2.7 – user3140711