Commit ddcf29ec by BellCodeEditor

save project

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