一维数组求平均值

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:46  IT.狂人  阅读(96)  评论(0)    收藏  举报