我还没有找到。同时我现在正在使用这样:
@abc.abstractmethod
def pure_virtual_method(self, a, b):
"""
Method description.
:param a: Whatever...
:param b: Whatever...
:returns: Whatever...
"""
# This line should never be executed.
raise NotImplementedError(
'pure virtual method specification called instead of any '
'implementation')