Commit 7b798886 by BellCodeEditor

save project

parent c53f991a
Showing with 6 additions and 3 deletions
......@@ -3,9 +3,12 @@ s2 = {'语文':61,'数学':78,'英语':95}
s3 = {'语文':41,'数学':68,'英语':75}
score={"wk":s1,"w2":s2,"w3":s3}
name=input("名字")
a=score[name]
for k,e in a.items():
print(k,e)
if name in score:
a=score[name]
for k,e in a.items():
print(k,e)
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