Commit bbe91235 by BellCodeEditor

save project

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