Commit 839218f9 by BellCodeEditor

save project

parent 6a142211
Showing with 8 additions and 11 deletions
...@@ -3,14 +3,12 @@ s2={'语文':97,'数学':98,'英语':90} ...@@ -3,14 +3,12 @@ s2={'语文':97,'数学':98,'英语':90}
s3={'语文':95,'数学':100,'英语':93} s3={'语文':95,'数学':100,'英语':93}
s={'悟空':s1,'诺伊':s2,'小贝':s3} s={'悟空':s1,'诺伊':s2,'小贝':s3}
n=input("姓名:")
i=s[n]
if n in s:
for s,j in i.items():
print("*"*35)
print(s,j)
a=s['悟空'] else:
print("姓名有误")
for i,j in a.items():
print("悟空成绩" +i,j)
a2=s['诺伊']
for i,j in a2.items():
print("诺伊成绩" +i,j)
a3=s['小贝']
for i,j in a3.items():
print("小贝成绩" +i,j)
\ 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