degerg.py 160 Bytes Edit 1 2 3 4 5 6 7 8 a=[] for i in range(10): b=int(input('请输入成绩:')) a.append(b) c=sum(a) print('班级成绩为:',a) print('班级平均分:',c/10)