📜  如何使用函数在python代码示例中找到平均值

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

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