Commit d61d796f by BellCodeEditor

save project

parent 62692a77
Showing with 21 additions and 0 deletions
student1 = {'语文': 100, '数学': 100, '英语': 100}
student2 = {'语文': 0, '数学': 0, '英语': 0}
student3 = {'语文': 52, '数学': 32, '英语': 23}
score = {'项圣豪': student1, '帅帅': student2, '蒋应铭': student3}
while True :
name = input("名字:")
print('*'*30)
if name in score :
score = score[name]
for k,v in score.items():
print(k,v)
print('*'*30)
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