Commit f81a8f96 by BellCodeEditor

save project

parent 949202c7
Showing with 11 additions and 8 deletions
......@@ -2,11 +2,14 @@ student1 = {'语文':91,'数学':88,'英语':85}
student2= {'语文':1,'数学':8,'英语':5}
student3= {'语文':9,'数学':8,'英语':8}
score={'王一安':student1,'坤坤':student2,'草子博':student3}
name=input("请问你的名字是:")
if name in score:
print ("-"*30)
for k,v in score[name].items():
print(k,v)
print ("-"*30)
else:
print("去你妈的")
while True:
name=input("请问你的名字是:")
if name in score:
print ("-"*30)
for k,v in score[name].items():
print(k,v)
print ("-"*30)
elif name=='q':
break
else:
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