Commit af144088 by BellCodeEditor

save project

parent f77ba23f
Showing with 9 additions and 3 deletions
......@@ -3,7 +3,12 @@ student2 = {'语文': 97, '数学': 98, '英语': 99}
student3 = {'语文': 99, '数学': 1, '英语': 100}
score = {'悟空': student1, '诺依': student2, '小贝': student3}
name = input("请输入名字:")
into = score[name]
for k,v in into.items():
if name = input("请输入名字:")
print("*"*30)
if name in score:
into = score[name]
for k,v in into.items():
print(k,v)
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