收起
嗯,用for语句进行给定score的平均数计算,要求用到len()函数.例如:
array=[70,60,55,75,95,90,80,80,85,100] s=0 for i in array: s=i+s average=s/len(array)
output:79.0
报告相同问题?