Commit 60a23879 by BellCodeEditor

save project

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