Python:实现matrix chainorder矩阵链顺序算法 import sys def MatrixChainOrder(array): N = len(array) Matrix = [[0 for x in range