满意答案
fcs710
2013.09.19
采纳率:43% 等级:6
已帮助:2408人
12345678910111213141516171819202122count = 30s = []for i in range(count): print(i+1) name = input('name:') score = input('score:') t = {} t['name'] = name t['score'] = int(score) s += [t]max = 0min = 0sum = 0for i in range(count): if max s[i]['score']: min = i sum +=s[i]['score']print('max:' + s[max]['name'] + ' ' + str(s[max]['score']))print('min:' + s[min]['name'] + ' ' + str(s[min]['score']))print('avg:' + str(sum/count))
320分享举报