Commit 0453f46c by BellCodeEditor

save project

parent bb652888
Showing with 14 additions and 8 deletions
student1 = {'语文': 0, '数学': 0, '英语': 0}918885
student2 = {'语文': 97, '数学': 98, '英语': 90}
student3 = {'语文': 95, '数学': 100, '英语': 93}
score = {'悟空': student1, '诺依': student2, '小贝': student3}
student1 = {'语文': 910, '数学':808, '英语': 508}
student2 = {'语文': 985, '数学': 980, '英语': 908}
student3 = {'语文': 905, '数学': 575, '英语': 943}
score = {'悟空': student1, '诺依': student2, '小贝': student3}
name = input("名字,")
info = score[name]
for k, v in imfo.items():
print(k,v)
\ No newline at end of file
print("*"*25)
if name in score:
score = score[name]
for k, v in imfo.items():
print(k,v)
print("*"*25)
else:
print("nn")
\ 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