Commit 12ddde7e by BellCodeEditor

auto save

parent 53257564
Showing with 7 additions and 6 deletions
...@@ -2,10 +2,10 @@ q = {'语文': 91, '数学': 88, '英语': 85} ...@@ -2,10 +2,10 @@ q = {'语文': 91, '数学': 88, '英语': 85}
w = {'语文': 97, '数学': 98, '英语': 90} w = {'语文': 97, '数学': 98, '英语': 90}
e = {'语文': 95, '数学': 100, '英语': 93} e = {'语文': 95, '数学': 100, '英语': 93}
score = {'悟空': q, '诺依': w, '小贝': e} score = {'悟空': q, '诺依': w, '小贝': e}
for r,t in q.items():
print(r,t)
for r,t in w.items():
print(r,t)
for r,t in e.items():
print(r,t)
# 查询并打印出输入的名字对应的所有科目的成绩 # 查询并打印出输入的名字对应的所有科目的成绩
name=input("名字")
if name in score:
info=score[name]
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