Commit ba5e29cc by BellCodeEditor

save project

parent 68fd17d6
Showing with 13 additions and 9 deletions
......@@ -2,15 +2,19 @@ s1 = {'语文':91,'数学':88,'英语':85}
s2 = {'语文':61,'数学':78,'英语':95}
s3 = {'语文':41,'数学':68,'英语':75}
score={"wk":s1,"w2":s2,"w3":s3}
name=input("名字")
if name in score:
a=score[name]
print("*"*30)
for k,e in a.items():
print(k,e)
print("*"*30)
else:
print("错")
while True:
name=input("名字")
if name in score:
a=score[name]
print("*"*30)
print("*"*30)
elif name=="q":
break
else:
print("错")
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