Python:实现binary exponentiation二进制幂运算算法 def binary_exponentiation(a, n): if n == 0: return 1 elif n % 2 == 1