我是编程新手,几周前我开始学习如何编写Python。我一直在用speech_recognition进行测试,我总是会遇到这个错误,这个错误已经困扰我好几天了。我在Windows上使用的是Python 3.9.5。\Python\Python39\lib\site-packages\speech_recognition\__init__.py", line 51, in __enter__
raise NotImplemente
我想在类中定义一些常量,这些常量将在类实例(派生类)中定义--如果这个变量没有在子类中重新定义,如何发出错误信号?我想在第一次读的时候提高NotImplementedError。# I want achieve same behavior for variable raise NotImplementedError()
def __init__():
# should th