Commit 0476d153 by BellCodeEditor

save project

parent df1db477
Showing with 15 additions and 4 deletions
......@@ -3,8 +3,18 @@ student2 = {'语文': 14,'数学': 89, '英语':42}
student3 = {'语文': 100,'数学': 100, '英语':98}
score = {'孙湧程':student1,'汪瑀宸':student2,'闵恩仇':student3,}
name = input("名字:")
info = score[name]
for k,v in info.items():
while True:
print("请输入名字")
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("程序结束")
\ 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