class BaseCalculator: @staticmethod def add(a, b): return a + b @staticmethod def subtract(a, b): return a - b @staticmethod def multiply(a, b): return a * b @staticmethod def divide(a, b): if b == 0: raise ZeroDivisionError("除数不能为0") return a / b