Commit 95d31300 by BellCodeEditor

save project

parent 7a2522ae
Showing with 20 additions and 0 deletions
......@@ -2,3 +2,22 @@ student1={"语文":91,"数学":88,"英语":85}
student2={"语文":103,"数学":120,"英语":116}
student3={"语文":100.5,"数学":116,"英语":118.5}
score={"宋春霖":student1,"徐欣冉":student2,"陈皓中":student3}
while True:
name=input("名字:")
if name in score:
print("*"*30)
a=score[name]
for k,v in a.items():
print(k,v)
print("*"*30)
continue
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