from functools import *
import functools as ft
from numpy import *
import numpy as np
v_list = [3,62,1,93,75,82,13,62,5,51]
v_list_len = len(v_list)
print('原列表 :',v_list,'\n')
#使用 mean()计算平均数
v_mean_average = np.mean(v_list)
print('mean()方式计算平均数 :',v_mean_average,'\n')
#for循环计算平均数
v_list_sum = ft.reduce(lambda x,y:x+y,v_list)
v_for_average = v_list_sum / v_list_len
print('for循环方式计算平均数 :',v_for_average,'\n')