大家帮我看看,哪里错了
d = { 'Adam': 95, 'Lisa': 85, 'Bart': 59, 'Paul': 74 }
sum=0.0
for name,score in d.interitems():
print name,':',score
sum+=score
print "average",sum/len(d)
d = { 'Adam': 95, 'Lisa': 85, 'Bart': 59, 'Paul': 74 }
sum=0.0
for name,score in d.interitems():
print name,':',score
sum+=score
print "average",sum/len(d)
2017-05-22
举报