Commit f2cb08fb by BellCodeEditor

save project

parent 2cbe2473
Showing with 20 additions and 0 deletions
student1 = {'语文':98,'数学':100,'语':87}
student2 = {'语文':67,'数学':86,'语':10}
student3 = {'语文':89,'数学':68,'语':81}
score = {'董熠阳': student1, '诺一': student2, '小贝': student3}
while True:
print("输入名字,退出打q")
name = input("名字:")
print("*"*30)
if name in score:
info = score[name]
for k,v in info.items():
print(k,v)
print("*" * 30)
elif name == "q":
break
else:
print("错误,请重写")
print("*"*30)
print("结束")
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