何时使用"raise NotImplementedError"? [英] When to use 'raise NotImplementedError'?
本文介绍了何时使用"raise NotImplementedError"?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否在提醒自己和您的团队正确实施课堂? 我没有完全使用这样的抽象类:
Is it to remind yourself and your team to implement the class correctly? I don't fully get the use of an abstract class like this:
class RectangularRoom(object):
def __init__(self, width, height):
raise NotImplementedError
def cleanTileAtPosition(self, pos):
raise NotImplementedError
def isTileCleaned(self, m, n):
raise NotImplementedError
推荐答案
查看全文