numpy.ndarray.trace# 方法 ndarray.trace(offset=0, axis1=0, axis2=1, dtype=None, out=None)# 回傳陣列對角線元素的總和。 完整文件請參閱 numpy.trace。 參見 numpy.trace等效函式