Commit 4188cb42 by BellCodeEditor

save project

parent dd0ca1b6
Showing with 12 additions and 4 deletions
...@@ -4,6 +4,15 @@ s3={'c':103,'m':105,'e':108} ...@@ -4,6 +4,15 @@ s3={'c':103,'m':105,'e':108}
score={'Lucas':s1,'tom':s2,'Sam':s3} score={'Lucas':s1,'tom':s2,'Sam':s3}
name=input("名字:") name=input("名字:")
info=score[name] print("*"*30)
for k,v in info.items(): if name in score:
print(k,v) score=score[name]
\ No newline at end of file for k,v in score.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