一维数组求平均值

一维数组求平均值

function median($a) {
  // Work your magic here. Make sure you're calculating the median, NOT the mean!
     return     array_sum($a)/count($a);

猜你喜欢

转载自www.cnblogs.com/farmerworker/p/9612510.html