是提醒自己和团队正确实施课程吗?我没有完全使用这样的抽象类:
class RectangularRoom(object):
def __init__(self, width, height):
raise NotImplementedError
def cleanTileAtPosition(self, pos):
raise NotImplementedError
def isTileCleaned(self, m, n):
raise NotImplementedError
原文由 Antonio 发布,翻译遵循 CC BY-SA 4.0 许可协议
正如文档所述 [docs] ,
请注意,尽管此错误的主要用例是指示应在继承类上实现的抽象方法,但您可以随心所欲地使用它,例如指示
TODO
标记。