Commit 92496c7b by BellCodeEditor

save project

parent aae87e7d
Showing with 6 additions and 4 deletions
......@@ -3,14 +3,15 @@ student2 = {'语文':0,'数学':98,'英语':0}
student3 = {'语文':57,'数学':88,'英语':100}
score = {'刘汉强':student1,'王天睿':student2,'SB':student3}
while True:
name = input("名字:")
print("*" * 30)
if name in score:
if name in score:
info = score[name]
for k,v in info.items():
print (k,v)
print("*" * 30)
else:
elif name == "w":
break
else:
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