Commit f81a8f96 by BellCodeEditor

save project

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