Commit 3199b3ec by BellCodeEditor

save project

parent 8ed8985f
Showing with 1117 additions and 1 deletions
...@@ -5,16 +5,1132 @@ score = {'悟空': student1, '诺依': student2, '小贝': student3} ...@@ -5,16 +5,1132 @@ score = {'悟空': student1, '诺依': student2, '小贝': student3}
# for k,v in student1.items(): # for k,v in student1.items():
# print(k,v) # print(k,v)
while True : while True :
print("请输入名字或q")
name = input("名字:") name = input("名字:")
if name in score : if name in score :
a = score[name] a = score[name]
print('*'*30) print('*'*30)
for k,v in a.items(): for k,v in a.items():
print(k,v) print(k,v)
print('*'*30)
elif name=="q":
break break
else: else:
print('输入错误') print('输入错误')
name=input("名字:") print("*"30)
print("结束")
# info=score[name] # info=score[name]
# for k,v in info.items(): # for k,v in info.items():
# print(k,v) # print(k,v)
z
s
n
bye
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