python求平均值

 

import numpy as np
 
#均值
np.mean(nums)
#中位数
np.median(nums)

 

posted on 2022-05-25 17:22  一杯明月  阅读(372)  评论(0编辑  收藏  举报