原始问题:
用Python编写代码处理学生成绩数据
定义一个列表,存放多个学生的成绩
scores = [{'sid':'101', 'Math':85, 'English':82}, {'sid':'102', 'Chinese':70, 'Math':75, 'English':72}]
打印出所有学生的成绩
for score in scores:
print(score)
用Python编写代码处理学生成绩数据
scores = [{'sid':'101', 'Math':85, 'English':82}, {'sid':'102', 'Chinese':70, 'Math':75, 'English':72}]
for score in scores:
print(score)
Prev:冰糖葫芦怎么做,可以教下我吗