Commit 79375732 by BellCodeEditor

save project

parent 8707893b
Showing with 8 additions and 4 deletions
...@@ -8,9 +8,13 @@ s2={'语文':81,'数学':89,'英语':95} ...@@ -8,9 +8,13 @@ s2={'语文':81,'数学':89,'英语':95}
s3={'语文':97,'数学':98,'英语':84} s3={'语文':97,'数学':98,'英语':84}
score={'a':s1,'b':s2,'c':s3} score={'a':s1,'b':s2,'c':s3}
name=input('名字:') name=input('名字:')
abcd=score[name] if name in score:
for i,j in abcd.items(): abcd=score[name]
print(i+" "+str(j)) print('*'*30)
for i,j in abcd.items():
print(i,j)
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