Python:实现modular exponential模指数算法 def modular_exponential(base: int, power: int, mod: int): if power < 0: