[Solution found!] np.average采用可选的权重参数。如果未提供,则等效。看一下源代码:Mean,Average np.mean: try: mean = a.mean except AttributeError: return ...
確定! 回上一頁