Commit 0476d153 by BellCodeEditor

save project

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