Commit bbe91235 by BellCodeEditor

save project

parent 79c12b80
Showing with 12 additions and 7 deletions
...@@ -2,13 +2,18 @@ s = {'语文': 91, '数学': 88, '英语': 85} ...@@ -2,13 +2,18 @@ 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("名子:") while True:
if e in c: e=input("名子:")
n=c[e] print("*"*15)
for k,v in n.items(): if e in c:
print(k,v) n=c[e]
else: for k,v in n.items():
print("名子错误") print(k,v)
print("*"*15)
elif e=="q":
break
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