Commit ddcf29ec by BellCodeEditor

save project

parent 9586a6c2
Showing with 8 additions and 4 deletions
...@@ -4,6 +4,10 @@ student1 = {'语文':95,'数学':88,'英语':85} ...@@ -4,6 +4,10 @@ student1 = {'语文':95,'数学':88,'英语':85}
score ={'悟空':student1,'诺依':student1,'小贝':student1} score ={'悟空':student1,'诺依':student1,'小贝':student1}
name = input('请输入名字') name = input('请输入名字')
info = score(name) print('*'*30)
for k,v in info.item(): if name in score:
print(k,v) info = score(name)
\ No newline at end of file for k,v in info.item():
print(k,v)
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