Commit 21f2bc17 by BellCodeEditor

save project

parent b7498cbe
Showing with 16 additions and 1 deletions
......@@ -11,7 +11,7 @@ while True :
name = input("名字:")
if name in score :
a = score[name]
print('*'*30)
print('*'*40)
for k,v in a.items():
print(k,v)
break
......
student1 = {'Chinese': 91, 'math': 88, 'English': 85}
student2 = {'Chinese': 97, 'math': 98, 'English': 90}
student3 = {'Chinese': 95, 'math': 100, 'English': 93}
score = {'Mike': student1, 'Ella': student2, 'Venus': student3}
while True:
name = input("name: ")
if name in score:
e = score[name]
print('*'*40)
for k,v in e.items():
print(k,v)
continue
else:
print("Error")
\ 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