Commit 3ff4792e by BellCodeEditor

save project

parent 0156bc39
Showing with 13 additions and 0 deletions
s1={'语文':91,'数学':88,'英语':85}
s2={'语文':81,'数学':98,'英语':100}
s3={'语文':89,'数学':987,'英语':99}
c={'悟空':s1,'小贝':s2,'老六':s3}
name = input('名字')
if name in c:
info = c[name]
for k,v in info.items():
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