Commit 4ce709f3 by BellCodeEditor

save project

parent 63e3169f
Showing with 3 additions and 7 deletions
......@@ -3,10 +3,6 @@ student2 = {'语文': 8266, '数学': 9547, '英语': 9845}
student3 = {'语文': 9458, '数学': 9875, '英语': 8884}
score = {'悟空': student1, '诺依': student2, '小贝': student3}
name=input('名子:')
if name in score:
score=score[name]
for k,v in score.items():
info=score[name]
for k,v in info.items():
print(k,v)
\ No newline at end of file
print('*'*30)
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