Commit a2031e4b by BellCodeEditor

save project

parent 18b44bc7
Showing with 17 additions and 0 deletions
stu1 = {"数学":88,"语文":90}
stu2 = {"数学":98,"语文":80}
score={"小明":stu1,"小红":stu2}
name = input("请输入同学姓名:")
print("*"*30)
if name in score:
info = score[name]
for k,o in info.items():
print(k,o)
print("*"*30)
else:
print("人不对")
print("*"*30)
\ 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