Commit 92e71c78 by BellCodeEditor

auto save

parent 62692a77
Showing with 15 additions and 0 deletions
score1={"语文":100,"数学":120,"英语":110}
score2={"语文":120,"数学":130,"英语":119}
score3={"语文":98,"数学":117,"英语":105}
scores={"王旭":score1,"李飞":score2,"胡鹏":score3}
while True:
name=input("名字:")
if name=="stop":
break
if name in scores:
print(name+"同学,你的各科成绩为:"+str(scores[name]))
print("________________________")
else:
print("抱歉,没有你想要的信息")
print("________________________")
\ 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