Commit 3d252230 by BellCodeEditor

save project

parent c7624c48
Showing with 7 additions and 6 deletions
...@@ -2,12 +2,13 @@ s = {'语文': 91, '数学': 88, '英语': 85} ...@@ -2,12 +2,13 @@ s = {'语文': 91, '数学': 88, '英语': 85}
t = {'语文': 97, '数学': 98, '英语': 90} t = {'语文': 97, '数学': 98, '英语': 90}
u = {'语文': 95, '数学': 100, '英语': 93} u = {'语文': 95, '数学': 100, '英语': 93}
c = {'悟空': s, '诺依': t, '小贝': u} c = {'悟空': s, '诺依': t, '小贝': u}
e=input("名子:") e=input("名子:")
n=c[e] if e in c:
for w,i in c.items(): n=c[e]
print(w,i) for k,v in n.items():
print(k,v)
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