📜  python 获取列表的平均值 - Python 代码示例

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

代码示例4
avreage_cost = cost
    avg = sum(avreage)/len(avreage) 
    print("The average amout you spent is ", round(avg,2))