Commit 95f751e8 by BellCodeEditor

save project

parent 24064584
Showing with 11 additions and 9 deletions
...@@ -4,13 +4,15 @@ student3 = {'语文': 95, '数学': 100, '英语': 93} ...@@ -4,13 +4,15 @@ student3 = {'语文': 95, '数学': 100, '英语': 93}
score = {'悟空': student1, '诺依': student2, '小贝': student3} score = {'悟空': student1, '诺依': student2, '小贝': student3}
while while True:
name = input("名字:")#输入 if name = input("名字:")#输入
if name in score: if name in score:
print("*"*10000000000) print("*"*100)
for k,v in score[name].items(): for k,v in score[name].items():
print(k+","+str(v)) print(k+","+str(v))
print("*"*10000000000) print("*"*100)
else: elif:nane=="q"
print("不存在") break
else:
print("不存在")
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