Commit f13564a1 by BellCodeEditor

save project

parent d3dd4801
Showing with 11 additions and 9 deletions
...@@ -2,11 +2,13 @@ student1 = {"语文":91,"数学":88,"英语:95} ...@@ -2,11 +2,13 @@ student1 = {"语文":91,"数学":88,"英语:95}
student2 = {"语文":91,"数学":88,"英语:95} student2 = {"语文":91,"数学":88,"英语:95}
student3 = {"语文":91,"数学":88,"英语:95} student3 = {"语文":91,"数学":88,"英语:95}
score= {"悟空":student1,"诺伊:student2,"小贝":sudent3} score= {"悟空":student1,"诺伊:student2,"小贝":sudent3}
name=input('名字:') while ture:
info=score[name] name=input('名字:')
for kv in score.itens(): info=score[name]
print(k,v) for kv in score.itens():
print('*'*30) print(k,v)
if name in score: print('*'*30)
score=score[Name] elif name=='q':
for k,v in score. break查询错误请重新输入
\ No newline at end of file print('*'*30)
\ 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