Python:实现matrix exponentiation矩阵求幂算法 import timeit class Matrix: def __init__(self, arg): if isinstance(arg, list):