Commit c834560b by BellCodeEditor

save project

parent d2bcf606
Showing with 17 additions and 5 deletions
...@@ -2,7 +2,19 @@ studen1 = {'语文':91,'数学':88,'英语':85} ...@@ -2,7 +2,19 @@ studen1 = {'语文':91,'数学':88,'英语':85}
studen2 = {'语文':97,'数学':98,'英语':90} studen2 = {'语文':97,'数学':98,'英语':90}
studen3 = {'语文':95,'数学':100,'英语':93} studen3 = {'语文':95,'数学':100,'英语':93}
score = {'悟空':studen1,'诺依':studen2,'小贝':studen3} score = {'悟空':studen1,'诺依':studen2,'小贝':studen3}
name = input('名字:')
info = score[name] while True:
for k,v in info.items(): print("请输入人名;退出请按q")
print(k,v) name = input('名字:')
\ No newline at end of file print('-'*40)
if name in score:
info = score[name]
for k,v in info.items():
print(k,v)
print('-'*40)
elif name == "q":
break
else:
print('该名字不存在,请检查正确后输入❤️')
print('-'*40)
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