Commit e3cf001b by BellCodeEditor

save project

parent 62d948fe
Showing with 8 additions and 6 deletions
...@@ -10,10 +10,12 @@ student2={'语文':97,'数学':98,'英语':90} ...@@ -10,10 +10,12 @@ student2={'语文':97,'数学':98,'英语':90}
student3={'语文':95,'数学':100,'英语':93} student3={'语文':95,'数学':100,'英语':93}
score = {'悟空'student1,'诺一'student2,'小贝'student3} score = {'悟空'student1,'诺一'student2,'小贝'student3}
name=input("name:") name=input("name:")
info=score[name] print("*"*30)
for k,v in info.items(): if name in score:
print(k,v) score=score[name]
for k,v in info.items():
print(k,v)
print("*"*30)
else:
print("错悟,苏这吹名字")
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