Python中如何求列表list的平均数
当列表list中只包含数字时,如何求取它的平均数:
from numpy import *
a = [52,69,35,65,89,15,34]
b = mean(a)
print(b)
运行结果:
51.285714285714285
相关资源:
http://www.dcsdn.com/doc/do-3728
http://www.dcsdn.com/doc/do-3662
http://www.dcsdn.com/doc/d-3573
原文链接:https://blog.csdn.net/weixin_40264772/article/details/101599365