Commit 5a637c39 by BellCodeEditor

save project

parent d82f0dad
Showing with 10 additions and 3 deletions
...@@ -2,6 +2,14 @@ a = {'语文':92,'数学':81,'英语':89} ...@@ -2,6 +2,14 @@ a = {'语文':92,'数学':81,'英语':89}
b = {'语文':91,'数学':82,'英语':87} b = {'语文':91,'数学':82,'英语':87}
c = {'语文':99,'数学':88,'英语':85} c = {'语文':99,'数学':88,'英语':85}
score={'悟空':a,'诺依':b,'小贝':c} score={'悟空':a,'诺依':b,'小贝':c}
name = input('名字:') name = input('名字:')
for k,v in score[name],items(): if name in score:
print(k,v) print("*"*30)
\ No newline at end of file for k,v in score[name],items():
print(k,v)
print("*"*30)
else:
print("你输入错了")
print("*"*30)
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