Commit 35ad4632 by BellCodeEditor

save project

parent c0b0e658
Showing with 14 additions and 10 deletions
......@@ -2,15 +2,19 @@ student1 = {'语文':1,'数学':100,'英语':2}
student2 = {'语文':11,'数学':1,'英语':20}
student3 = {'语文':0.000001,'数学':9,'英语':42}
score = {'悟空':student1,'诺伊':student2,'核武':student3}
name = input("名字:")
print("*"*30)
if name in score:
score=score[name]
for k,v in score.items():
print(k,v)
print("*"*30)
else:
while True:
print("考虑到离开大陆旅客!!!")
name = input("名字:")
print("*"*30)
if name in score:
score=score[name]
for k,v in score.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