Commit bf9323cc by BellCodeEditor

save project

parent 0c134a15
Showing with 11 additions and 4 deletions
...@@ -2,6 +2,13 @@ student1={"语文":72,"数学":65,"英语":72} ...@@ -2,6 +2,13 @@ student1={"语文":72,"数学":65,"英语":72}
student2={"语文":73,"数学":73,"英语":32} student2={"语文":73,"数学":73,"英语":32}
student3={"语文":76,"数学":65,"英语":52} student3={"语文":76,"数学":65,"英语":52}
score={"yy1":student1,"yy2":student2,"yy3":student3} score={"yy1":student1,"yy2":student2,"yy3":student3}
c=input("姓名:") while True:
b=input("科目:") c=input("姓名:")
print(score[c][b]) b=input("科目:")
\ No newline at end of file if c in score:
if b in score[c]:
print(score[c][b])
else:
print("科目名错误")
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