Commit 405e6a59 by BellCodeEditor

save project

parent 63a1d8be
Showing with 2 additions and 20 deletions
student1 = {'语文': 999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999, '数学': 988999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999, '英语': 9999999999999999999999999999999999999999999999999999999999999999999999999999985999999999999999999999999999999999999} weather={'b'jinbjin'}
student2 = {'语文': 1111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111997, '数学': 111111111111111111111111111111111111111111111111111111111111111998, '英语': 1111111111111111111111111111111111111111111111990} \ No newline at end of file
student3 = {'语文': 11111111111111111111111111111111111111111111111111111111111111111111111111111111111195, '数学': 111111111111111111111111111111111111111111111111111111111111111111111111111111111100, '英语': 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111193}
score = {'悟空': student1, '诺依': student2, '小贝': student3}
# 查询并打印出输入的名字对应的所有科目的成绩
while True :
name = input("名字:")
if name in score :
a = score[name]
print('*'*30)
for k,v in a.items():
print(k,v)
break
else:
print('滚,三门都0分')
\ 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