代码示例:(标识:python_ml_numpy_var)
python_ml_numpy_var.py
import numpy

speed = [32,111,138,28,59,77,97]

x = numpy.var(speed)

print(x)
运行结果: