Commit ef13a1e7 by BellCodeEditor

auto save

parent 5ab88987
Showing with 18 additions and 4 deletions
score = {'语文':91,'数学':88,'英语':85}
s1cj={'语文':91,'数学':88,'英语':85}
s2cj={'语文':93,'数学':85,'英语':75}
bj= {"s1":s1cj,"s2":s2cj}
b=0
# 请对字典进行遍历,将保存的分数以键值对的形式提取打印出来
while True:
a=input("请输入你要查询的名字")
print("*"*30)
if a in bj:
print(bj[a])
b=input("你是否还想继续查询?")
if b=="是":
continue
else:
print("感谢查询,再见")
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