一维数组求平均值

一维数组求平均值

function median($a) {
  // Work your magic here. Make sure you're calculating the median, NOT the mean!
     return     array_sum($a)/count($a);
posted @ 2018-09-09 08:48  IT.狂人  阅读(1185)  评论(3编辑  收藏  举报