Commit 9b6f9055 by BellCodeEditor

save project

parent 9c754856
Showing with 11 additions and 7 deletions
...@@ -3,9 +3,13 @@ b={"语文":81,"数学":80,"英语":80} ...@@ -3,9 +3,13 @@ b={"语文":81,"数学":80,"英语":80}
c={"语文":91,"数学":92,"英语":84} c={"语文":91,"数学":92,"英语":84}
score={'悟空':a,'诺一':b,'小贝':c} score={'悟空':a,'诺一':b,'小贝':c}
name = input("名字:")
if name in score: while True:
for k,v in score[name].items(): name = input("名字:")
print(k,v) if name in score:
else: for k,v in score[name].items():
print("错误") print(k,v)
\ No newline at end of file elif name =="q":
break
else:
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