Commit 21f928ad by BellCodeEditor

auto save

parent bb8c879e
Showing with 2 additions and 15 deletions
s1 = {'语文':91,'数学':88,'英语':85}
s2={'语文':999,'数学':999,'英语':999}
s3={'语文':666,'数学':777,'英语':888}
sb={"小男孩":s1,"大伊万":s2,"傻逼":s3}
while True:
print("请输入名字,然后按q")
m=input('姓名:')
if m in sb:
i=sb[m]
for k,v in i.items():
print(k,v)
elif m =='q':
break
else:
print('错误')
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