Commit 546d18f7 by BellCodeEditor

auto save

parent f0c715f8
Showing with 23 additions and 0 deletions
st1 = {'语文': 91, '数学': 88, '英语': 85}
st2 = {'语文': 99, '数学': 99, '英语': 99}
st3 = {'语文': 100, '数学': 100, '英语': 100}
st4 = {'语文': 97, '数学': 68, '英语': 90}
st5 = {'语文': 87, '数学': 98, '英语': 96}
st6 = {'语文': 98, '数学': 69, '英语': 90}
score = {'钟毅': st1, '解舒岩': st2, '李成恩': st3, "马昭雨":st4, "顾翔宇":st5, "刘浩宇":st6}
# 查询并打印出输入的名字对应的所有科目的成绩
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('输入错误')
\ 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