Commit fcda7342 by BellCodeEditor

save project

parent 6c4b85b5
Showing with 16 additions and 3 deletions
sss={'语文':0,'数学':33,'英语'11} sss={'语文':0,'数学':33,'英语':11}
sss2={'语文':50,'数学':63,'英语':60} sss2={'语文':50,'数学':63,'英语':60}
sss3={'语文':100,'数学':100,'英语':100} sss3={'语文':100,'数学':100,'英语':100}
ss={'悟空':sss,'小贝':sss2,'诺伊':sss3} ss={'悟空':sss,'小贝':sss2,'诺伊':sss3}
name=input('你要查询谁的成绩?') while True:
\ No newline at end of file print('退出请按q')
name=input('你要查询谁的成绩?')
if name in ss:
print('*'*30)
ss2=ss[name]
for k,v in ss2.items():
print(k,v)
print('*'*30)
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