📜  意思 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:24.996000             🧑  作者: Mango

代码示例2
#the plan is to remove all values that are zero

def mean(arr): # mod_mean
  arr = list(filter(lambda n:n!=0,arr))
  return sum(arr)/len(arr)