Commit 684b17a0 by BellCodeEditor

auto save

parent 4093c2f4
Showing with 7 additions and 3 deletions
......@@ -2,9 +2,13 @@ a={"卢骏文":{"语文":79,"数学":91,"英语":87},
"张文镐":{"语文":79,"数学":91,"英语":87},
"林俊先":{"语文":79,"数学":91,"英语":87},
"黄昊洋":{"语文":79,"数学":91,"英语":87}}
b=input("请输入学生名字:")
c=a[b]
for i,o in c.items():
while True:
b=input("请输入学生名字:")
if b not in a:
print("没有该学生")
else:
c=a[b]
for i,o in c.items():
print(i,o)
......
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