Commit 60a23879 by BellCodeEditor

save project

parent c7262277
Showing with 13 additions and 9 deletions
......@@ -11,11 +11,15 @@ score = {'悟空': student1, '诺依': student2, '小贝': student3}
# c=score['小贝']
# for k,v in c.items():
# print(k,v)
name=input('输入名字:')
if name in score:
a=score[name]
print('*'*30)
for k,v in a.items():
print(k,v)
else:
print('输入有误')
\ No newline at end of file
while True:
print('退出请输入q')
name=input('输入名字:')
if name in score:
a=score[name]
print('*'*30)
for k,v in a.items():
print(k,v)
elif name=='q':
break
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