Python:实现fermat little theorem费马小定理算法 def binary_exponentiation(a, n, mod): if n == 0: return 1 elif n % 2 ==