Commit 6338f188 by BellCodeEditor

auto save

parent df4450a8
Showing with 9 additions and 1 deletions
student1 = {'语文': 91, '数学': 88, '英语': 85}
student2 = {'语文': 97, '数学': 98, '英语': 90}
student3 = {'语文': 95, '数学': 100, '英语': 93}
student4 = {'语文': 95, '数学': 100, '英语': 93}
student4 = {'语文': 95, '数学': 1, '英语': 93}
student5 = {'语文': 95, '数学': 100, '英语': 93}
score = {'悟空': student1, '诺依': student2, '小贝': student3}
score["郑翰"] = student4
......@@ -14,5 +14,12 @@ while True :
for k,v in a.items():
print(k,v)
break
elif name=="q":
break
elif name=="m":
n=input('请输入您要更改的学生名')
b=input('请输入您要更改的课目')
v=input('请输入您要更改的成绩')
score[n][b]=v
else:
print('输入错误')
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment