Commit a8933599 by BellCodeEditor

save project

parent 15c6051e
Showing with 6 additions and 3 deletions
...@@ -4,5 +4,8 @@ c={"语文":91,"数学":92,"英语":84} ...@@ -4,5 +4,8 @@ c={"语文":91,"数学":92,"英语":84}
score={'悟空':a,'诺一':b,'小贝':c} score={'悟空':a,'诺一':b,'小贝':c}
name = input("名字:") name = input("名字:")
for k,v in score[name].items(): if name in score:
print(k,v) for k,v in score[name].items():
\ No newline at end of file print(k,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