Solution: To calculate the variance of a Python NumPy array x , use the function np.var(x) . Here is an example: import numpy as np. # Goals in five matches.
確定! 回上一頁